idontgetoutmuch / random

Random number library
Other
3 stars 2 forks source link

Slight improvement in performance. #125

Closed lehins closed 4 years ago

lehins commented 4 years ago

Improve performance of generation of ShortByteString (for small lengths it doubles the performance)

lehins commented 4 years ago

I thought someone might ask about that. This PR also adds couple of tests and a benchmark for ShortByteString generation.

Also adds Eq and NFData instances for StdGen.