Skip to content

Commit

Permalink
Fix Xoroshiro jump()
Browse files Browse the repository at this point in the history
  • Loading branch information
nvzqz committed Apr 13, 2017
1 parent cffa545 commit ba41bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/RandomKit/Types/RandomGenerator/Xoroshiro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public struct Xoroshiro: RandomBytesGenerator, SeedableFromOtherRandomGenerator
@inline(__always)
func doThings(with value: UInt64) {
for i: UInt64 in 0 ..< 64 {
if (value & 1) << i != 0 {
if value & 1 << i != 0 {
s0 ^= _state.0
s1 ^= _state.1
}
Expand Down

0 comments on commit ba41bea

Please sign in to comment.