Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
shuffle
Function · 0.80
next_01
Method · 0.80
next_range
Method · 0.80
next_chance
Method · 0.80
next_index
Method · 0.80
random_api_typecheck_and_forward
Function · 0.80
seeded_rng_reseed_reset_sequence
Function · 0.80
Calls
1
hash_u32
Function · 0.70
Tested by
2
random_api_typecheck_and_forward
Function · 0.64
seeded_rng_reseed_reset_sequence
Function · 0.64