From 7b735ab6fc3e0bb368f1ca484168eaefbbe3ce9c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 4 Apr 2025 18:29:09 -0400 Subject: Misc fixes --- examples/random/random.tm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/random/random.tm') 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, []) -- cgit v1.2.3