diff options
Diffstat (limited to 'examples/random/random.tm')
| -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, []) |
