diff options
Diffstat (limited to 'libgo/go/math/rand/rand.go')
-rw-r--r-- | libgo/go/math/rand/rand.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libgo/go/math/rand/rand.go b/libgo/go/math/rand/rand.go index 459aed1..8955219 100644 --- a/libgo/go/math/rand/rand.go +++ b/libgo/go/math/rand/rand.go @@ -107,7 +107,9 @@ func (r *Rand) Perm(n int) []int { var globalRand = New(&lockedSource{src: NewSource(1)}) -// Seed uses the provided seed value to initialize the generator to a deterministic state. +// Seed uses the provided seed value to initialize the generator to a +// deterministic state. If Seed is not called, the generator behaves as +// if seeded by Seed(1). func Seed(seed int64) { globalRand.Seed(seed) } // Int63 returns a non-negative pseudo-random 63-bit integer as an int64. |