diff options
author | ache <ache@FreeBSD.org> | 1997-03-11 14:06:52 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-03-11 14:06:52 +0000 |
commit | 25a75681875810cd650f496ad8f6d657424431f0 (patch) | |
tree | f28bdf1f18c2a36a898af4f3ea141c17e25db3ec /usr.bin | |
parent | eb6e762489b9edc7555b057405e07f8dd34c8859 (diff) | |
download | FreeBSD-src-25a75681875810cd650f496ad8f6d657424431f0.zip FreeBSD-src-25a75681875810cd650f496ad8f6d657424431f0.tar.gz |
Fix srandom arg type according to Lite2
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/jot/jot.c | 2 | ||||
-rw-r--r-- | usr.bin/passwd/local_passwd.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c index 81751ca..408af5c 100644 --- a/usr.bin/jot/jot.c +++ b/usr.bin/jot/jot.c @@ -96,7 +96,7 @@ main(argc, argv) getargs(argc, argv); if (randomize) { *x = (ender - begin) * (ender > begin ? 1 : -1); - srandom((unsigned) s); + srandom((unsigned long) s); for (*i = 1; *i <= reps || infinity; (*i)++) { *y = (double) random() / LONG_MAX; putdata(*y * *x + begin, reps - *i); diff --git a/usr.bin/passwd/local_passwd.c b/usr.bin/passwd/local_passwd.c index b28d673..92e59de 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.13 1997/02/22 19:56:34 peter Exp $ + * $Id: local_passwd.c,v 1.14 1997/03/10 07:46:03 ache Exp $ */ #ifndef lint @@ -152,7 +152,7 @@ getnewpasswd(pw, nis) (void)printf("Mismatch; try again, EOF to quit.\n"); } /* grab a random printable character that isn't a colon */ - (void)srandom((unsigned)(time(NULL) ^ getpid())); + (void)srandom((unsigned long)(time(NULL) ^ getpid())); #ifdef NEWSALT salt[0] = _PASSWORD_EFMT1; to64(&salt[1], (long)(29 * 25), 4); |