MCPcopy 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
25fn 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
32fn seed(data: &[u8]) -> u32 {
33 let mut rng = [1u8; 4];

Callers 1

rand_arrvecFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected