-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
I was wondering whether there are plans to add to this package of family of very cheap PRNG. I, personally, would like to compare Xoroshiro to something that I just came across:
// Cheap PRNG from "Numerical Recipes in C", page 284.
static inline uint32_t cheap_generator () {
static unsigned long idum;
idum = 1664525L*idum + 1013904223L;
return idum;
}Sure, that's so simple that one could just implement that directly, but it might be nice to have it as part of this package. Some applications (chaotic PDEs for me) probably don't need any high quality PRNG, therefore testing it against the (presumably) cheapest possible PRNG would be great.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels