1
0
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:
Subhomoy Haldar
2022-04-07 18:30:30 +05:30
committed by GitHub
parent 95753ffb30
commit 022fae1e7f
2 changed files with 11 additions and 3 deletions

View File

@@ -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: