mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
rand: make mt19937 automatically seeded, add seed_len to wyrand (#13966)
This commit is contained in:
@@ -12,6 +12,8 @@ const (
|
||||
wyp1 = u64(0xe7037ed1a0b428db)
|
||||
)
|
||||
|
||||
pub const seed_len = 2
|
||||
|
||||
// WyRandRNG is a RNG based on the WyHash hashing algorithm.
|
||||
pub struct WyRandRNG {
|
||||
mut:
|
||||
|
||||
Reference in New Issue
Block a user