Changelog for splitmix-0.1.0.3
0.1.0.3
-
Fix oops bugs in 0.1.0.2
-
It's lowercase
windows.h. I blame Microsoft docs for using capital caseWindows.hin the docs. https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getprocessid -
accidental
shiftLvsshiftRmixup for 32-bit generator initialization. Doesn't affect Linux.
-
0.1.0.2
- Drop
timedependency in favour of handcoded initialization- On Unix platforms we use
/dev/urandomif it exists, otherwise usegettimeofday,clockandgetpid. - On Windows we use
GetCurrentProcessID,GetCurrentThreadId(),GetTickCount,GetSystemTimeandQueryPerformanceCounter. - On GHCJS use
Math.random() - Using
timeis a fallback option (e.g. for Hugs).
- On Unix platforms we use
0.1.0.1
- Add
INLINEABLEpragmas tobitmaskWithRejection*functions - Support GHC-9.0
0.1
- Drop
randomdependency unconditionally. https://github.com/phadej/splitmix/issues/34
0.0.5
- Add
nextInteger - Use smaller range in
bitmaskWithRejection32and64, when upper bound is 2^n - 1. This changes generated values when they were on the boundary.
0.0.4
- Add
bitmaskWithRejection32'andbitmaskWithRejection64'which generate numbers in closed range[0, n]. Unticked variants generate in closed-open range[0, n).
0.0.3
- Add
System.Random.SplitMix32module - Add
bitmaskWithRejection32andbitmaskWithRejection64functions - Add
nextWord32,nextTwoWord32andnextFloat - Add
randomflag, dropping dependency onrandom(breaks things, e.g.QuickCheck, when disabled).
0.0.2
- Support back to GHC-7.0
- Add
Read SMGeninstance
0.0.1
- Add
NFData SMGeninstance - Fix a bug. http://www.pcg-random.org/posts/bugs-in-splitmix.html The generated numbers will be different for the same seeds!