I want to deterministically seed with mkStdGen based on some unique bits I have (some UUID). I noticed that mkStdGen take Int and then fromIntegrals it to a Word64, which splitmix actually uses.
Why not just expose the Word64 seeding function directly? I'd like to very explicitly provide 64 bits.
For now, I can either just do my stuff in Word32/Word64 and fromIntegral myself. Or I can do bit stuff and do split binary search.
If backwards compat is the issue, I suggest mkStdGenW64 :: Word64 -> StdGen (maybe I'll provide a PR myself?)
I want to deterministically seed with
mkStdGenbased on some unique bits I have (some UUID). I noticed thatmkStdGentakeIntand thenfromIntegrals it to aWord64, which splitmix actually uses.Why not just expose the
Word64seeding function directly? I'd like to very explicitly provide 64 bits.For now, I can either just do my stuff in
Word32/Word64andfromIntegralmyself. Or I can do bit stuff and dosplitbinary search.If backwards compat is the issue, I suggest
mkStdGenW64 :: Word64 -> StdGen(maybe I'll provide a PR myself?)