mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: byte => u8
This commit is contained in:
@ -39,14 +39,14 @@ pub fn (mut rng WyRandRNG) byte() byte {
|
||||
// Can we extract a value from the buffer?
|
||||
if rng.bytes_left >= 1 {
|
||||
rng.bytes_left -= 1
|
||||
value := byte(rng.buffer)
|
||||
value := u8(rng.buffer)
|
||||
rng.buffer >>= 8
|
||||
return value
|
||||
}
|
||||
// Add a new value to the buffer
|
||||
rng.buffer = rng.u64()
|
||||
rng.bytes_left = 7
|
||||
value := byte(rng.buffer)
|
||||
value := u8(rng.buffer)
|
||||
rng.buffer >>= 8
|
||||
return value
|
||||
}
|
||||
|
Reference in New Issue
Block a user