Function rustduino::math::xor_shift[][src]

pub fn xor_shift(a: u8) -> u8
Expand description

XOR Shift for stability in number generation. It implements one round of XORShift PRNG algorithm for statistical stability.

Arguments

  • a - a u8, the number whose bits will be shifted.

Returns

  • a u8 - the bit-shifted number.