Skip to content
  • Inuyasha's avatar
    P_Random now using a variant of xorshift · ce2c2de5
    Inuyasha authored
    This actually passes most diehard tests, as opposed to the old RNG.
    It's also similarly fast.
    
    Internally the PRNG generates a fixed point number from [0,1) now,
    which makes P_RandomKey and P_RandomRange much easier to
    calculate. P_Random is just a simple shift, as well.
    
    Also, the lack of floating point math in P_RandomKey and
    P_RandomRange now is probably for the best.
    ce2c2de5