Search Haskell Channel Logs

Monday, March 6, 2017

#haskell channel featuring Athas, merijn, spatial, raylocal, jophish,

raylocal 2017-03-05 23:01:49
I do not really need to generate a industrial strength random thankfully but we do run statistical tests on clients RNG (TRNG /PRNGs) but that is just me clicking a button to run the script.
Athas 2017-03-05 23:04:16
I just use this one: http://stackoverflow.com/a/12996028
Athas 2017-03-05 23:04:24
They say it's cool to run your own crypto, after all.
merijn 2017-03-05 23:06:00
I just stole MurmurHash3 when I needed a fast hash
Athas 2017-03-05 23:06:58
Does it have a very small state? (That was my main need, as I needed hundreds of thousands of threads, each with their own RNG state.)
spatial 2017-03-05 23:07:11
type ArrayAccess = ReaderT (IOArray Int Int) IO Int readvalue :: ArrayAccess -> Int readvalue arr = do a <- ask b <- readArray a 1; return b
jophish 2017-03-05 23:41:51
the easiest way at the moment would probably be to use withVectorUnsafe