diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-04 18:29:09 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-04 18:29:09 -0400 |
| commit | 7b735ab6fc3e0bb368f1ca484168eaefbbe3ce9c (patch) | |
| tree | 4a7c78bb0967b8fbc1042d901cf0346705d9d0d8 /examples/random | |
| parent | 0b8074154e2671691050bdb3bcb33245625a056c (diff) | |
Misc fixes
Diffstat (limited to 'examples/random')
| -rw-r--r-- | examples/random/random.tm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/random/random.tm b/examples/random/random.tm index 0a0167ac..95d2f9fe 100644 --- a/examples/random/random.tm +++ b/examples/random/random.tm @@ -25,7 +25,7 @@ func _os_random_bytes(count:Int64 -> [Byte]): } struct RandomNumberGenerator(_chacha:chacha_ctx, _random_bytes:[Byte]=[]; secret): - func new(seed=none:[Byte], -> @RandomNumberGenerator): + func new(seed:[Byte]?=none, -> @RandomNumberGenerator): ctx := chacha_ctx.from_seed(seed or _os_random_bytes(40)) return @RandomNumberGenerator(ctx, []) |
