Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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]
155
pub const fn mod_int(value: i64) -> PyHash {
156
value % MODULUS as i64
157
}
158
159
pub fn lcg_urandom(mut x: u32, buf: &mut [u8]) {
160
for b in buf {
Callers
4
hash_value
Method · 0.85
hash_iter
Method · 0.85
hash_bigint
Function · 0.85
hash_usize
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected