mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
crypto: document rest of rand submodule (#8580)
This commit is contained in:
parent
59c1c77bfe
commit
1101533dea
@ -7,6 +7,7 @@ module rand
|
|||||||
import math.bits
|
import math.bits
|
||||||
import encoding.binary
|
import encoding.binary
|
||||||
|
|
||||||
|
// int_u64 returns a random unsigned 64-bit integer `u64` read from a real OS source of entropy.
|
||||||
pub fn int_u64(max u64) ?u64 {
|
pub fn int_u64(max u64) ?u64 {
|
||||||
bitlen := bits.len_64(max)
|
bitlen := bits.len_64(max)
|
||||||
if bitlen == 0 {
|
if bitlen == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user