From 44aeb383289bc80644e3c6aef2b7b2494149c80b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 20 May 2020 21:27:08 -0400 Subject: [PATCH] make rand function public, fixes crypto benchmark --- lib/std/rand.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/rand.zig b/lib/std/rand.zig index 45a1172b3d..1e5bb37592 100644 --- a/lib/std/rand.zig +++ b/lib/std/rand.zig @@ -658,7 +658,7 @@ pub const Xoroshiro128 = struct { self.s[1] = s1; } - fn seed(self: *Xoroshiro128, init_s: u64) void { + pub fn seed(self: *Xoroshiro128, init_s: u64) void { // Xoroshiro requires 128-bits of seed. var gen = SplitMix64.init(init_s);