mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: change [0;n] to [0].repeat(n)
This commit is contained in:
committed by
Alexander Medvednikov
parent
602e472b8a
commit
f077fbd32d
@@ -30,7 +30,7 @@ pub fn new_cipher(key []byte) ?Cipher {
|
||||
return error('crypto.rc4: invalid key size ' + key.len.str())
|
||||
}
|
||||
mut c := Cipher{
|
||||
s: [u32(0); 256]
|
||||
s: [u32(0)].repeat(256)
|
||||
}
|
||||
for i := 0; i < 256; i++ {
|
||||
c.s[i] = u32(i)
|
||||
|
||||
Reference in New Issue
Block a user