mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
crypto.rand: rename read_u64 to int_u64 + clean up
This commit is contained in:

committed by
Alexander Medvednikov

parent
f187c35fb2
commit
b9cc6535f6
@ -29,13 +29,13 @@ fn test_crypto_rand_read() {
|
||||
assert diff_percentage <= max_percentage_diff
|
||||
}
|
||||
|
||||
fn test_crypto_rand_read_u64() {
|
||||
fn test_crypto_rand_int_u64() {
|
||||
max := u64(200)
|
||||
r1 := rand.read_u64(max) or {
|
||||
r1 := rand.int_u64(max) or {
|
||||
assert false
|
||||
return
|
||||
}
|
||||
r2 := rand.read_u64(max) or {
|
||||
r2 := rand.int_u64(max) or {
|
||||
assert false
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user