test: prove package initialization semantics
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
package main;
|
||||
import math.random;
|
||||
export fn main() int = {
|
||||
let g: random.random = random.init(1u64);
|
||||
let g: random.random = random.fromseed(1u64);
|
||||
let x: u64 = random.u64n(&g, 10u64);
|
||||
if (x >= 10u64) { return 1; };
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user