Open leonbaum opened 10 years ago
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?