package
6.17.1+incompatible
Repository: https://github.com/factomproject/factomd.git
Documentation: pkg.go.dev
# Functions
RandByte returns a random byte.
RandByteSlice returns a random byte slice of length 0 <= len <= 63.
RandByteSliceOfLen returns a random byte slice of specified length.
RandInt returns a random integer between [0,MaxInt64).
RandInt64 returns a random number between [0,MaxInt64).
RandInt64Between returns a random number between [min,max).
RandIntBetween returns a random number between [min,max).
RandNonEmptyByteSlice returns a random byte slice of length 1 <= len <= 63 (guaranteed not zero length).
RandomString creates a random string of length 0 <= len < 128 consisting only of characters within the set of lower and uppercase letters, numbers 0-9, and the special characters associated with 'shift+<num>' on your keyboard.
RandUInt32 returns a random number between [0,MaxUint32).
RandUInt64 returns a random number between [0,MaxUint64).
RandUInt64Between returns a random number between [min,max).
RandUInt8 returns a random number between [0,MaxUint8).
# Constants
1<<31 - 1 or 1<<63 - 1.
1<<32 - 1 or 1<<64 - 1.
-1 << 31 or -1 << 63.
StringAlphabet is the valid characters supported by RandomString() below.
32 or 64.