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

Method next_u32

perro_source/api_modules/perro_modules/src/random.rs:356–359  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

354
355 #[inline]
356 pub fn next_u32(&mut self) -> u32 {
357 self.state = self.state.wrapping_add(STREAM_GAMMA);
358 hash_u32(self.state)
359 }
360
361 #[inline]
362 pub fn next_01(&mut self) -> f32 {

Callers 7

shuffleFunction · 0.80
next_01Method · 0.80
next_rangeMethod · 0.80
next_chanceMethod · 0.80
next_indexMethod · 0.80

Calls 1

hash_u32Function · 0.70

Tested by 2