MCPcopy Create free account
hub / github.com/PerroEngine/Perro / rand_u32_stream

Function rand_u32_stream

perro_source/api_modules/perro_modules/src/random.rs:286–288  ·  view source on GitHub ↗
(seed: u32, index: u32)

Source from the content-addressed store, hash-verified

284
285#[inline]
286pub const fn rand_u32_stream(seed: u32, index: u32) -> u32 {
287 hash_u32(seed.wrapping_add(index.wrapping_mul(STREAM_GAMMA)))
288}
289
290#[inline]
291pub fn rand01_stream(seed: u32, index: u32) -> f32 {

Callers 1

rand01_streamFunction · 0.85

Calls 1

hash_u32Function · 0.70

Tested by

no test coverage detected