Sign in
third-party-mirror
/
golang
/
lru
/
b96e49072d4b84693eac85918d457b48ef53534e
/
.
/
testing.go
blob: 492760782c5eafdbec94dbd31ae7a9580346feb6 [
file
] [
log
] [
blame
]
package lru
import (
"crypto/rand"
"math"
"math/big"
"testing"
)
func getRand(tb testing.TB) int64 {
out, err := rand.Int(rand.Reader, big.NewInt(math.MaxInt64))
if err != nil {
tb.Fatal(err)
}
return out.Int64()
}