mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
make rand function public, fixes crypto benchmark
This commit is contained in:
parent
897f23f20f
commit
44aeb38328
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user