Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lokathor/tinyvec
/ xorshift
Function
xorshift
fuzz/src/bin/arrayvec_iter.rs:25–30 ·
view source on GitHub ↗
(x: u32)
Source
from the content-addressed store, hash-verified
23
}
24
25
fn xorshift(x: u32) -> u32 {
26
let x = x ^ (x << 13);
27
let x = x ^ (x >> 17);
28
let x = x ^ (x << 5);
29
return x;
30
}
31
32
fn seed(data: &[u8]) -> u32 {
33
let mut rng = [1u8; 4];
Callers
1
rand_arrvec
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected