package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Jul 17, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func CRandBytes(numBytes int) []byte
This only uses the OS's randomness.
CRandHex returns a hex encoded string that's floor(numDigits/2) * 2 long.
Note: CRandHex(24) gives 96 bits of randomness that
are usually strong enough for most purposes.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.