Fills a buffer with random data. If not enough entropy has been gathered, it will block.
Note that on Mac OS X this method will never block.
pointer to the buffer to fill
length of the buffer (in bytes)
A non-zero integer if an error occurred.
ubyte[] buf = new ubyte[10]; genRandomBlocking(buf); int sum; foreach (b; buf) sum += b; assert(sum > 0, "Only zero points generated");
See Implementation
Fills a buffer with random data. If not enough entropy has been gathered, it will block.
Note that on Mac OS X this method will never block.