On Fri, Apr 22, 2016 at 02:45:59PM +0200, Jakub Wilk wrote:

> > fp = fopen("/dev/urandom", "rb");
> > if (fp == NULL) {
> >   fprintf(stderr, "Error: Cannot open /dev/urandom.\n");
> 
> The error message doesn't say what the error was, or what program caused
> this error.

While we are at it, instead of opening /dev/urandom, use the getrandom()
function if it's available. The latter has more chance of working in
chroots that don't have a /dev.

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <g...@debian.org>

Attachment: signature.asc
Description: Digital signature

Reply via email to