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.
PCGSource.Seed64
PCGSource.Seed128
1 parent 776a471 commit 7f2d908Copy full SHA for 7f2d908
rand/rng.go
@@ -58,8 +58,8 @@ func (pcg *PCGSource) Uint64() uint64 {
58
return bits.RotateLeft64(pcg.high^pcg.low, -int(pcg.high>>58))
59
}
60
61
-// Seed64 sets both the high and low bits of the generator state to the provided values.
62
-func (pcg *PCGSource) Seed64(high, low uint64) {
+// Seed128 sets both the high and low bits of the generator state to the provided values.
+func (pcg *PCGSource) Seed128(high, low uint64) {
63
pcg.high = high
64
pcg.low = low
65
0 commit comments