package rand

import (
	
	
	
	
)

func () {
	Reader = rand.Reader
}

// Reader provides a random reader that can reset during testing.
var Reader io.Reader

// Int63n returns a int64 between zero and value of max, read from an io.Reader source.
func ( io.Reader,  int64) (int64, error) {
	,  := rand.Int(, big.NewInt())
	if  != nil {
		return 0, fmt.Errorf("failed to read random value, %w", )
	}

	return .Int64(), nil
}

// CryptoRandInt63n returns a random int64 between zero and value of max
// obtained from the crypto rand source.
func ( int64) (int64, error) {
	return Int63n(Reader, )
}