summaryrefslogtreecommitdiff
path: root/usr.bin/passwd
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-06-14 00:27:03 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-06-14 00:27:03 +0000
commit687ee69a2abe1b2c2c56c935dda90df37c17ed04 (patch)
tree4add7f59d98f22f308bf7716d44bcb50cb647b49 /usr.bin/passwd
parent545cda7db5ae1957628bc73b02aaf805a35474de (diff)
Notes
Diffstat (limited to 'usr.bin/passwd')
-rw-r--r--usr.bin/passwd/local_passwd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/passwd/local_passwd.c b/usr.bin/passwd/local_passwd.c
index b64f4f77da89..5e8a4bc8b947 100644
--- a/usr.bin/passwd/local_passwd.c
+++ b/usr.bin/passwd/local_passwd.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: local_passwd.c,v 1.16 1997/03/24 16:10:26 ache Exp $
+ * $Id: local_passwd.c,v 1.17 1997/05/10 19:02:38 davidn Exp $
*/
#ifndef lint
@@ -155,8 +155,7 @@ getnewpasswd(pw, nis)
/* grab a random printable character that isn't a colon */
if (!randinit) {
randinit = 1;
- if (srandomdev() < 0)
- srandom((unsigned long)(time(NULL) ^ getpid()));
+ srandomdev();
}
#ifdef NEWSALT
salt[0] = _PASSWORD_EFMT1;