go/src/crypto/rand/util_test.go

// https://golang.org/issue/6849.
func TestPrimeSmall(t *testing.T) {}

// Test that passing bits < 2 causes Prime to return nil, error
func TestPrimeBitsLt2(t *testing.T) {}

func TestPrimeNondeterministic(t *testing.T) {}

func TestInt(t *testing.T) {}

type countingReader

func (r *countingReader) Read(p []byte) (n int, err error) {}

// Test that Int reads only the necessary number of bytes from the reader for
// max at each bit length
func TestIntReads(t *testing.T) {}

// Test that Int does not mask out valid return values
func TestIntMask(t *testing.T) {}

func testIntPanics(t *testing.T, b *big.Int) {}

// Test that passing a new big.Int as max causes Int to panic
func TestIntEmptyMaxPanics(t *testing.T) {}

// Test that passing a negative value as max causes Int to panic
func TestIntNegativeMaxPanics(t *testing.T) {}

func BenchmarkPrime(b *testing.B) {}