make rand function public, fixes crypto benchmark

This commit is contained in:
Andrew Kelley 2020-05-20 21:27:08 -04:00
parent 897f23f20f
commit 44aeb38328

View File

@ -658,7 +658,7 @@ pub const Xoroshiro128 = struct {
self.s[1] = s1; 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. // Xoroshiro requires 128-bits of seed.
var gen = SplitMix64.init(init_s); var gen = SplitMix64.init(init_s);