We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a3d9dd + 63ed790 commit edf2877Copy full SHA for edf2877
src/Xorshifts/xoshiro256.jl
@@ -63,7 +63,7 @@ copy(src::T) where T <: AbstractXoshiro256 = copyto!(T(), src)
63
64
==(r1::T, r2::T) where T <: AbstractXoshiro256 = r1.x == r2.x && r1.y == r2.y && r1.z == r2.z && r1.w == r2.w
65
66
-seed!(r::AbstractXoshiro256, seed::Integer) = seed!(r, init_seed(seed % UInt64))
+seed!(r::AbstractXoshiro256, seed::Integer) = seed!(r, init_seed(seed, UInt64))
67
function seed!(r::AbstractXoshiro256, seed::NTuple{4, UInt64}=gen_seed(UInt64, 4))
68
all(==(0), seed) && error("0 cannot be the seed")
69
r.x = seed[1]
0 commit comments