Skip to content

Commit 776a471

Browse files
committed
rand: rename PCGSource.PCG to PCGSource.State
1 parent 20a3031 commit 776a471

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
@@ -64,8 +64,8 @@ func (pcg *PCGSource) Seed64(high, low uint64) {
6464
pcg.low = low
6565
}
6666

67-
// PCG returns the high and low bits of the generator state.
68-
func (pcg *PCGSource) PCG() (high, low uint64) {
67+
// State returns the high and low bits of the generator state.
68+
func (pcg *PCGSource) State() (high, low uint64) {
6969
return pcg.high, pcg.low
7070
}
7171

0 commit comments

Comments
 (0)