mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
all: replace []byte with []u8
This commit is contained in:
parent
0527ac633e
commit
fb192d949b
164 changed files with 533 additions and 533 deletions
|
@ -21,7 +21,7 @@ const (
|
|||
)
|
||||
|
||||
fn internal_ulid_at_millisecond(mut rng PRNG, unix_time_milli u64) string {
|
||||
mut buf := []byte{cap: 27}
|
||||
mut buf := []u8{cap: 27}
|
||||
mut t := unix_time_milli
|
||||
mut i := 9
|
||||
for i >= 0 {
|
||||
|
@ -53,7 +53,7 @@ fn internal_ulid_at_millisecond(mut rng PRNG, unix_time_milli u64) string {
|
|||
return res
|
||||
}
|
||||
|
||||
fn read_internal(mut rng PRNG, mut buf []byte) {
|
||||
fn read_internal(mut rng PRNG, mut buf []u8) {
|
||||
for i in 0 .. buf.len {
|
||||
buf[i] = rng.u8()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue