mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: fix error pos on default value (#6338)
This commit is contained in:
@ -62,7 +62,7 @@ mut:
|
||||
state []u64 = calculate_state(util.time_seed_array(2), mut []u64{len: nn})
|
||||
mti int = nn
|
||||
next_rnd u32
|
||||
has_next bool = false
|
||||
has_next bool
|
||||
}
|
||||
|
||||
fn calculate_state(seed_data []u32, mut state []u64) []u64 {
|
||||
|
@ -9,7 +9,7 @@ import rand.util
|
||||
pub struct SplitMix64RNG {
|
||||
mut:
|
||||
state u64 = util.time_seed_64()
|
||||
has_extra bool = false
|
||||
has_extra bool
|
||||
extra u32
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ const (
|
||||
pub struct WyRandRNG {
|
||||
mut:
|
||||
state u64 = util.time_seed_64()
|
||||
has_extra bool = false
|
||||
has_extra bool
|
||||
extra u32
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user