summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/mersenne.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/mersenne.nim b/lib/pure/mersenne.nim
index 36b597767..f18cf5b90 100644
--- a/lib/pure/mersenne.nim
+++ b/lib/pure/mersenne.nim
@@ -36,8 +36,8 @@ proc getNum*(m: var MersenneTwister): uint32 =
   m.index = (m.index + 1) mod m.mt.len
 
   result = result xor (result shr 11'u32)
-  result = result xor ((7'u32 shl result) and 0x9d2c5680'u32)
-  result = result xor ((15'u32 shl result) and 0xefc60000'u32)
+  result = result xor ((result shl 7'u32) and 0x9d2c5680'u32)
+  result = result xor ((result shl 15'u32) and 0xefc60000'u32)
   result = result xor (result shr 18'u32)
 
 # Test