Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
module wyrand
import hash
pub fn (mut r WyRandRNG) free() {}
@[ignore_overflow; inline]
pub fn (mut rng WyRandRNG) u64() u64 {
unsafe {
mut seed1 := rng.state
seed1 += wyp0
rng.state = seed1
return hash.wymum(seed1 ^ wyp1, seed1)
}
return 0
}