CA-85761: Use unbuffered I/O to read from /dev/(u)random

Signed-off-by: Vincent Bernardoff <vincent.bernardoff@citrix.com>