MCPcopy Index your code
hub / github.com/RustPython/RustPython / mod_int

Function mod_int

crates/common/src/hash.rs:155–157  ·  view source on GitHub ↗
(value: i64)

Source from the content-addressed store, hash-verified

153
154#[inline]
155pub const fn mod_int(value: i64) -> PyHash {
156 value % MODULUS as i64
157}
158
159pub fn lcg_urandom(mut x: u32, buf: &mut [u8]) {
160 for b in buf {

Callers 4

hash_valueMethod · 0.85
hash_iterMethod · 0.85
hash_bigintFunction · 0.85
hash_usizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected