package
Version:
v1.3.2
Opens a new window with list of versions in this module.
Published: Mar 3, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Documentation
¶
Int31 returns a non-negative random 31-bit integer as an int32.
Int63 returns a non-negative random 63-bit integer as an int64.
New returns 16-byte raw random bytes.
It is not printable, you can use encoding/hex or encoding/base64 to print it.
func NewHex() (rd []byte)
NewHex returns 32-byte hex-encoded bytes.
Read reads len(p)-byte raw random bytes to p.
Uint32 returns a random 32-bit integer as a uint32.
Uint64 returns a random 64-bit integer as a uint64.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.