package
19.1.0-beta.20190304+incompatible
Repository: https://github.com/darinpp/cockroach.git
Documentation: pkg.go.dev
# Functions
NewPseudoRand returns an instance of math/rand.Rand seeded from crypto/rand and its seed so we can easily and cheaply generate unique streams of numbers.
NewPseudoSeed generates a seed from crypto/rand.
RandBytes returns a byte slice of the given length with random data.
RandIntInRange returns a value in [min, max).
ReadTestdataBytes reads random bytes, but then nudges them into printable ASCII, *reducing their randomness* to make them a little friendlier for humans using them as testdata.
SeedForTests seeds the random number generator and prints the seed value used.