summaryrefslogtreecommitdiff
path: root/util/nvmutil/nvmutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r--util/nvmutil/nvmutil.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 06ef681f..e07efbb3 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -263,7 +263,6 @@ static void usage(uint8_t usage_exit);
#define items(x) (sizeof((x)) / sizeof((x)[0]))
static const char newrandom[] = "/dev/urandom";
-static const char oldrandom[] = "/dev/random"; /* fallback on OLD unix */
static const char *rname = NULL;
/*
@@ -723,11 +722,6 @@ open_dev_urandom(void)
if (urandom_fd != -1)
return;
- rname = oldrandom;
- urandom_fd = open(rname, O_RDONLY);
- if (urandom_fd != -1)
- return;
-
/* fallback on VERY VERY VERY old unix */
use_prng = 1;
srand((unsigned)(time(NULL) ^ getpid()));