Use a fixed lenght buffer in writePseudoRandomBytes()

This will reduce memory usage.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>