; random.fill is deterministic for a given seed. ; expect: run ; grant: rng=random.read ; seed: 7 ; result: [90,118,249,78] ; phase: 2 ; spec: docs/reference/intrinsics.md module test.random_seeded air 0 lang 0.1 features [arrays, capabilities, effects, ownership, resources] fn @main(%rng: cap) -> array effects [random.read] entry: %b = local.alloc array local.zero %b %m = borrow.mut %b %s = slice.make %m intrinsic random.fill(%rng, %s) borrow.end %s borrow.end %m %r = local.load %b ret %r