mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib,cgen: cleanup array inits using `.repeat() instead of new init syntax
This commit is contained in:
@ -16,7 +16,7 @@ const (
|
||||
|
||||
fn gen_randoms(seed_data []u32, bound int) []u64 {
|
||||
bound_u64 := u64(bound)
|
||||
mut randoms := [u64(0)].repeat(20)
|
||||
mut randoms := []u64{len:(20)}
|
||||
mut rnd := splitmix64.SplitMix64RNG{}
|
||||
rnd.seed(seed_data)
|
||||
for i in 0 .. 20 {
|
||||
|
Reference in New Issue
Block a user