mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
rand: separate rand.util and rand.seed submodules (#8353)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import math
|
||||
import rand.pcg32
|
||||
import rand.util
|
||||
import rand.seed
|
||||
|
||||
const (
|
||||
range_limit = 40
|
||||
@ -25,7 +25,7 @@ fn gen_randoms(seed_data []u32, bound int) []u32 {
|
||||
}
|
||||
|
||||
fn test_pcg32_reproducibility() {
|
||||
seed_data := util.time_seed_array(4)
|
||||
seed_data := seed.time_seed_array(4)
|
||||
randoms1 := gen_randoms(seed_data, 1000)
|
||||
randoms2 := gen_randoms(seed_data, 1000)
|
||||
assert randoms1.len == randoms2.len
|
||||
|
Reference in New Issue
Block a user