diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index d3adb7ba138f..8bbf8936bc5a 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -200,7 +200,7 @@ char *av[]; #endif init_prob(); - srandom((int)(time((time_t *) NULL) ^ getpid())); + srandom((unsigned long)(time((time_t *) NULL) ^ getpid())); do { get_fort(); } while ((Short_only && fortlen() > SLEN) || diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c index 81751ca67319..408af5c995d7 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 b28d673b41e7..92e59deceed2 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);