• Michael Niedermayer's avatar
    avutil/eval: Use even better PRNG · 278fea36
    Michael Niedermayer authored
    This is the 64bit version of Chris Doty-Humphreys SFC64
    
    Compared to the LCGs these produce much better quality numbers.
    Compared to LFGs this needs less state. (our LFG has 224 byte
    state for its 32bit version) this has 32byte state
    Also the initialization for our LFG is slower.
    This is also much faster than KISS or PCG.
    
    This commit replaces the broken LCG used before.
    (broken as it had only a period ~200M due to being put in a double)
    
    This changes the output from random() which is why libswresample.mak
    is updated, update was done using the command in libswresample.mak
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    278fea36
sfc64.h 2.49 KB