This only uses the OS's randomness
(numBytes int)
| 18 | |
| 19 | // This only uses the OS's randomness |
| 20 | func CRandBytes(numBytes int) []byte { |
| 21 | return randBytes(numBytes) |
| 22 | } |
| 23 | |
| 24 | // CRandHex returns a hex encoded string that's floor(numDigits/2) * 2 long. |
| 25 | // |