On this install I’m still on 0.9.1 and it doesn’t crash, but warns me that the evaluation fails at compile time:
$ zig run 487.zig
/usr/lib/zig/std/rand/Xoshiro256.zig:26:40: error: unable to evaluate constant expression
const r = math.rotl(u64, self.s[0] +% self.s[3], 23) +% self.s[0];
^
/usr/lib/zig/std/rand/Xoshiro256.zig:84:26: note: called from here
var n = self.next();
^
/usr/lib/zig/std/rand.zig:44:23: note: called from here
fillFn(self, buf);
^
/usr/lib/zig/std/rand.zig:56:17: note: called from here
r.fillFn(r.ptr, buf);
^
/usr/lib/zig/std/rand.zig:84:16: note: called from here
r.bytes(rand_bytes[0..]);
^
./487.zig:4:27: note: called from here
const r = rnd.random().int(u32);
^
./487.zig:4:27: note: called from here
const r = rnd.random().int(u32);
^