robert-strandh / SICL

A fresh implementation of Common Lisp
Other
1.07k stars 79 forks source link

Slightly restructure sicl-random and add a PCG32 implementation #212

Closed johnlorentzson closed 3 years ago

johnlorentzson commented 3 years ago

The "slight restructuring" is just moving the Mersenne Twister methods into a separate file. PCG32 is not used by default, but can be enabled by (setf sicl-random::*default-random-state-class-name* 'sicl-random::pcg32-random) followed by (setf *random-state* (make-random-state t)). I'd like to get opinions on this before it's merged.