Fix srandom arg type according to Lite2
This commit is contained in:
parent
2c8bf35a05
commit
28c4ca5ce6
@ -200,7 +200,7 @@ char *av[];
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
init_prob();
|
init_prob();
|
||||||
srandom((int)(time((time_t *) NULL) ^ getpid()));
|
srandom((unsigned long)(time((time_t *) NULL) ^ getpid()));
|
||||||
do {
|
do {
|
||||||
get_fort();
|
get_fort();
|
||||||
} while ((Short_only && fortlen() > SLEN) ||
|
} while ((Short_only && fortlen() > SLEN) ||
|
||||||
|
@ -96,7 +96,7 @@ main(argc, argv)
|
|||||||
getargs(argc, argv);
|
getargs(argc, argv);
|
||||||
if (randomize) {
|
if (randomize) {
|
||||||
*x = (ender - begin) * (ender > begin ? 1 : -1);
|
*x = (ender - begin) * (ender > begin ? 1 : -1);
|
||||||
srandom((unsigned) s);
|
srandom((unsigned long) s);
|
||||||
for (*i = 1; *i <= reps || infinity; (*i)++) {
|
for (*i = 1; *i <= reps || infinity; (*i)++) {
|
||||||
*y = (double) random() / LONG_MAX;
|
*y = (double) random() / LONG_MAX;
|
||||||
putdata(*y * *x + begin, reps - *i);
|
putdata(*y * *x + begin, reps - *i);
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* 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
|
#ifndef lint
|
||||||
@ -152,7 +152,7 @@ getnewpasswd(pw, nis)
|
|||||||
(void)printf("Mismatch; try again, EOF to quit.\n");
|
(void)printf("Mismatch; try again, EOF to quit.\n");
|
||||||
}
|
}
|
||||||
/* grab a random printable character that isn't a colon */
|
/* 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
|
#ifdef NEWSALT
|
||||||
salt[0] = _PASSWORD_EFMT1;
|
salt[0] = _PASSWORD_EFMT1;
|
||||||
to64(&salt[1], (long)(29 * 25), 4);
|
to64(&salt[1], (long)(29 * 25), 4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user