It's not being used anywhere, remove it.
Change-Id: I9c3eecacd4e5d44b18243bdec24ad88bc38c82bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/639957
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Roland Shoemaker <roland@golang.org>
return uint32(c) % n
}
-func (mr *mockRand) exp2() int {
- c := mr.values[mr.counter]
- mr.counter++
- return c
-}
-
func (mr *mockRand) bool() bool {
b := mr.b
mr.b = !mr.b
uint32() uint32
intn(int) int
uint32n(uint32) uint32
- exp2() int
bool() bool
save(randState, randInc *uint64)
return uint32(prod >> 32)
}
-// exp2 generates n with probability 1/2^(n+1).
-func (r *pcgRand) exp2() int {
- return bits.TrailingZeros32(r.uint32())
-}
-
// bool generates a random bool.
func (r *pcgRand) bool() bool {
return r.uint32()&1 == 0