Skip to content

Commit ba41bea

Browse files
committed
Fix Xoroshiro jump()
1 parent cffa545 commit ba41bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/RandomKit/Types/RandomGenerator/Xoroshiro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public struct Xoroshiro: RandomBytesGenerator, SeedableFromOtherRandomGenerator
7373
@inline(__always)
7474
func doThings(with value: UInt64) {
7575
for i: UInt64 in 0 ..< 64 {
76-
if (value & 1) << i != 0 {
76+
if value & 1 << i != 0 {
7777
s0 ^= _state.0
7878
s1 ^= _state.1
7979
}

0 commit comments

Comments
 (0)