Skip to content

Commit 7f2d908

Browse files
committed
rand: rename PCGSource.Seed64 to PCGSource.Seed128
1 parent 776a471 commit 7f2d908

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rand/rng.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ func (pcg *PCGSource) Uint64() uint64 {
5858
return bits.RotateLeft64(pcg.high^pcg.low, -int(pcg.high>>58))
5959
}
6060

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) {
61+
// Seed128 sets both the high and low bits of the generator state to the provided values.
62+
func (pcg *PCGSource) Seed128(high, low uint64) {
6363
pcg.high = high
6464
pcg.low = low
6565
}

0 commit comments

Comments
 (0)