Documentation ¶
Index ¶
- func RandomBytes(n int) ([]byte, error)
- func RandomBytesS(n int) ([]byte, error)
- func String(length int) string
- func StringS(length int) string
- func Uint16() uint16
- func Uint16S() uint16
- func Uint24() uint32
- func Uint24S() uint32
- func Uint32() uint32
- func Uint32S() uint32
- func Uint64() uint64
- func Uint64S() uint64
- func Uint8() uint8
- func Uint8S() uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomBytes ¶
RandomBytes Reads n random bytes from the system-specific PRNG and returns them in a byte slice
func RandomBytesS ¶
RandomBytesS Reads n random bytes from the system-specific CSPRNG and returns them in a byte slice
func Uint16 ¶
func Uint16() uint16
Uint16 Gets 2 random bytes of data from the PRNG and returns them as a single 16-bit short integer
func Uint16S ¶
func Uint16S() uint16
Uint16S Gets 2 random bytes of data from the CSPRNG and returns them as a single 16-bit short integer
func Uint24 ¶
func Uint24() uint32
Uint24 Gets 3 random bytes of data from the PRNG and returns them as a single 24-bit smart integer
func Uint24S ¶
func Uint24S() uint32
Uint24S Gets 3 random bytes of data from the CSPRNG and returns them as a single 24-bit smart integer
func Uint32 ¶
func Uint32() uint32
Uint32 Gets 4 random bytes of data from the PRNG and returns them as a single 32-bit integer
func Uint32S ¶
func Uint32S() uint32
Uint32S Gets 4 random bytes of data from the CSPRNG and returns them as a single 32-bit integer
func Uint64 ¶
func Uint64() uint64
Uint64 Gets 8 random bytes of data from the PRNG and returns them as a single 64-bit long integer
Types ¶
This section is empty.