crypto: remove extraneous casts & rename rand_lin to rand_linux

This commit is contained in:
joe-conigliaro 2020-01-24 08:49:13 +11:00 committed by Alexander Medvednikov
parent dd61a22367
commit 2897bac549
8 changed files with 10 additions and 10 deletions

View file

@ -49,7 +49,7 @@ fn bytes_to_u64(b []byte) []u64 {
if i > 0 {
mut d := u64(0)
for s := u64(0); i > 0; s += u64(8) {
d |= u64(u64(b[i-1]) << s)
d |= u64(b[i-1]) << s
i--
}
z[z.len-1] = d