We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989ebe1 commit 957212dCopy full SHA for 957212d
vlib/rand/pcg32/pcg32.v
@@ -15,7 +15,7 @@ pub struct PCG32RNG {
15
buffer.PRNGBuffer
16
mut:
17
state u64 = u64(0x853c49e6748fea9b) ^ seed.time_seed_64()
18
- inc u64 = u64(0xda3e39cb94b95bdb) ^ seed.time_seed_64()
+ inc u64 = (u64(0xda3e39cb94b95bdb) ^ seed.time_seed_64()) | u64(1)
19
}
20
21
// seed seeds the PCG32RNG with 4 `u32` values.
0 commit comments