• Olexa Bilaniuk's avatar
    PRNG changes: xorshift128+ algorithm, and seeding API. · f454929d
    Olexa Bilaniuk authored
    - Switched to the extremely fast, while simple and high-quality,
    xorshift128+ PRNG algorithm by Sebastiano Vigna in "Further scramblings
    of Marsaglia's xorshift generators. CoRR, abs/1402.6246, 2014" (2^128-1
    period, passes BigCrush tests). Performance improved by 10% over
    random().
    - Added an API to allow seeding with a specified seed, rather than using
    rand() or random(). This allows deterministic, reproducible results in
    tests using our algorithm (although findHomography() does not yet
    support passing an entropy source on its own end).
    f454929d
rhorefc.h 10.9 KB