diff options
Diffstat (limited to 'usr.sbin/pw/pw_user.c')
-rw-r--r-- | usr.sbin/pw/pw_user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index 9d00bfa..c1bfd94 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/pw/pw_user.c @@ -1058,6 +1058,7 @@ pw_getrand(u_char *buf, int len) { int i; + srandomdev(); for (i = 0; i < len; i++) { unsigned long val = random(); /* Use all bits in the random value */ |