Skip to content

Sixty-four bit super long period pseudorandom number generator in Go.

License

Notifications You must be signed in to change notification settings

charltoncr/SuperKISS64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuperKISS64 Pseudorandom Number Generator

SuperKISS64 is an extremely long period (more than 10^397524) pseudorandom number generator by George Marsaglia, from http://forums.silverfrost.com/viewtopic.php?t=1480 (named SUPRKISS64.c by Marsaglia) posted 2009-11-22, modified and ported to Go by Ron Charlton 2021-06-03.

For math only see https://www.thecodingforums.com/threads/superkiss-for-32-and-64-bit-rngs-in-both-c-and-fortran.706893/

SuperKISS64 may be wrapped by math/rand.New; it implements math/rand Source and Source64. It also implements an io.Reader.

cryptosource.go is used only to initialize SuperKISS64. It doesn't make SuperKISS64 cryptographically secure. cryptosource.go may be used independent of SuperKISS64 if desired. It too implements math/rand Source, Source64 and io.Reader, and may be wrapped by math/rand.New.

About

Sixty-four bit super long period pseudorandom number generator in Go.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages