1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

rand: reorganize (step 1)

This commit is contained in:
Hungry Blue Dev
2020-06-02 00:43:56 +05:30
committed by GitHub
parent 4fcabb71c4
commit a7c84834f4
19 changed files with 3833 additions and 160 deletions

View File

@@ -27,16 +27,3 @@ fn test_wyhash() {
assert got == test.expected
}
}
fn test_rand_u64() {
seed := u64(111)
mut rand_nos := []u64{}
for _ in 0..40 {
rand_no := wyhash.rand_u64(&seed)
for r in rand_nos {
assert rand_no != r
}
rand_nos << rand_no
}
assert true
}