~ubuntu-branches/ubuntu/lucid/9base/lucid

« back to all changes in this revision

Viewing changes to lib9/truerand.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-08-20 17:34:06 UTC
  • mfrom: (6.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090820173406-xpwqa9ruyevvc0ut
Tags: 1:3-3
* Updating maintainer field.
* Updating vcs fields.
* Updating package to standards version 3.8.3.
* Updatin variables writing in rules to consistent style.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
                if(randfd < 0 || read(randfd, buf, 1) != 1)
16
16
                        randfd = open(randfile="/dev/srandom", OREAD);  /* OpenBSD */
17
17
                if(randfd < 0)
18
 
                        sysfatal("can't open /dev/random: %r");
 
18
                        sysfatal("can't open %s: %r", randfile);
19
19
                fcntl(randfd, F_SETFD, FD_CLOEXEC);
20
20
        }
21
21
        for(i=0; i<sizeof(buf); i += n)