Skip to content
This repository has been archived by the owner on Oct 4, 2018. It is now read-only.

jj1bdx/exs1024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exs1024: xorshift1024star PRNG for Erlang

xorshift1024star is a 64-bit PRNG of (2^1024-1) period.

See http://xorshift.di.unimi.it/ for the further details.

LICENSE

MIT License.

(The code under c-example directory is licensed CC0/public domain.)

Tested platforms

  • FreeBSD/amd64 10.1-STABLE with Erlang/OTP 17.4 and HiPE

  • OS X x86_64 10.10.1 with Erlang/OTP 17.4 and HiPE

  • HiPE is not a requirement but recommended to be enabled.

A preliminary test shows the exs1024 functions takes roughly x2 of execution time of random module on a x86_64 or amd64 architecture environment.

Make options (of erlang.mk)

  • Makefile works on both BSD/GNU make
  • Makefile.[module_name] is the real GNU make file; edit this file for modification
  • Building: make
  • Documentation: make docs
  • Testing: make tests
  • Execution speed benchmark: make speed
  • See also erlang.mk for the details

TODO

  • More seeding algorithms
  • More evaluation and refactoring

Authors

Algorithm by Sebastiano Vigna, and he made it public domain.

Programmed by Kenji Rikitake.

Contributors

Dan Gudmundsson

About

Xorshift1024star for Erlang

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published