pub fn threefry2x32(k1: u32, k2: u32, x1: u32, x2: u32) -> (u32, u32)Expand description
The threefry2x32 hash (20 rounds) of the counters (x1, x2) with the
key (k1, k2), as in jax.random.
ยงExamples
// A known answer of the Random123 test vectors.
let (a, b) = ruxla_kernels::random::threefry2x32(0x13198a2e, 0x03707344, 0x243f6a88, 0x85a308d3);
assert_eq!((a, b), (0xc4923a9c, 0x483df7a0));