=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/enc.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/openssl/enc.c 2014/09/01 20:54:37 1.2 --- src/usr.bin/openssl/enc.c 2014/10/22 13:54:03 1.3 *************** *** 1,4 **** ! /* $OpenBSD: enc.c,v 1.2 2014/09/01 20:54:37 doug Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * --- 1,4 ---- ! /* $OpenBSD: enc.c,v 1.3 2014/10/22 13:54:03 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * *************** *** 69,75 **** #include #include #include - #include #include int set_hex(char *in, unsigned char *out, int size); --- 69,74 ---- *************** *** 461,468 **** "invalid hex salt value\n"); goto end; } ! } else if (RAND_pseudo_bytes(salt, sizeof salt) < 0) ! goto end; /* * If -P option then don't bother * writing --- 460,468 ---- "invalid hex salt value\n"); goto end; } ! } else ! arc4random_buf(salt, ! sizeof(salt)); /* * If -P option then don't bother * writing