You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs, the sample function should use the default random source for the monad, which according to the Data.Random.Source.IO docs is DevRandom for the IO monad on Linux.
That can't be right, can it? If I run sampleFrom DevRandom, the performance is terrible (as expected), but sample seems similar to sampleFrom mwc. Is MWC actually the default on Linux?
The text was updated successfully, but these errors were encountered:
The comment could stand to be clearer. It's referring to the "DevRandom" type, which includes constructors that reference both /dev/random and /dev/urandom. It uses the one corresponding to /dev/urandom. When I get a bit more time (hopefully this weekend) I'll clarify the docs.
According to the docs, the
sample
function should use the default random source for the monad, which according to theData.Random.Source.IO
docs isDevRandom
for theIO
monad on Linux.That can't be right, can it? If I run
sampleFrom DevRandom
, the performance is terrible (as expected), butsample
seems similar tosampleFrom mwc
. Is MWC actually the default on Linux?The text was updated successfully, but these errors were encountered: