]> gitweb.factorcode.org Git - factor.git/commit
random.xoshiro: Implement xoshiro256starstar.
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 29 Dec 2018 19:27:41 +0000 (13:27 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 29 Dec 2018 19:27:41 +0000 (13:27 -0600)
commit0f996e934274eb3985ffc5a732120709be1c1857
treef24c7fe0a7a2ef4b809a56f35b792a44156187ab
parentb73f1bd8b1ced60574347e1867ffda84da932324
random.xoshiro: Implement xoshiro256starstar.

It's rather slow because Factor doesn't have 64bit integers.

[
1,000,000 <iota>
1 2 3 4 <xoshiro-256-star-star> '[ drop _ next-256 ] map
] profile

Reference implementation: http://xoshiro.di.unimi.it/xoshiro256starstar.c
Debugging C code: https://paste.factorcode.org/paste?id=3949

Related issue: #1518
extra/random/xoshiro/authors.txt [new file with mode: 0644]
extra/random/xoshiro/tags.txt [new file with mode: 0644]
extra/random/xoshiro/xoshiro-tests.factor [new file with mode: 0644]
extra/random/xoshiro/xoshiro.factor [new file with mode: 0644]