diff options
Diffstat (limited to 'util/nvmutil')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index e4fe6c72..1a6f4687 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -358,7 +358,20 @@ open_dev_urandom(void) /* * Fall back to /dev/random on old platforms * where /dev/urandom does not exist. + * + * In general, we can assume that any system + * that would have urandom, probably has the + * other device (/dev/urandom). + * + * Given that on many modern systems, urandom + * and random are essentially the same, this + * also provides some fault-tolerance there, + * while still ultimately being strict under + * fallback conditions, thus: */ + + errno = 0; + rname = oldrandom; xopen(&rfd, rname, O_RDONLY, &st_rfd); } |
