mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vlib,cgen: cleanup array inits using `.repeat() instead of new init syntax
This commit is contained in:
parent
2669610be9
commit
c84bafbdae
31 changed files with 52 additions and 53 deletions
|
@ -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 := wyrand.WyRandRNG{}
|
||||
rnd.seed(seed_data)
|
||||
for i in 0 .. 20 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue