X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fmagic.c;h=db48ee8c3f4081875b0aa291f042e4a73a787dd4;hp=4797f0b19fd636f09c357b786b3378c002519ebd;hb=768532f702f8af685d29ed278f352e1c79141112;hpb=fcdd79cf516672a47a3dd24b8e01071763f62110 diff --git a/pppd/magic.c b/pppd/magic.c index 4797f0b..db48ee8 100644 --- a/pppd/magic.c +++ b/pppd/magic.c @@ -18,23 +18,20 @@ */ #ifndef lint -static char rcsid[] = "$Id: magic.c,v 1.5 1995/06/06 01:52:25 paulus Exp $"; +static char rcsid[] = "$Id: magic.c,v 1.7 1998/03/25 03:07:49 paulus Exp $"; #endif #include +#include #include #include #include "pppd.h" #include "magic.h" -static u_int32_t next; /* Next value to return */ - -extern int gethostid __P((void)); extern long mrand48 __P((void)); extern void srand48 __P((long)); - /* * magic_init - Initialize the magic number generator. * @@ -49,7 +46,7 @@ magic_init() struct timeval t; gettimeofday(&t, NULL); - seed = gethostid() ^ t.tv_sec ^ t.tv_usec ^ getpid(); + seed = get_host_seed() ^ t.tv_sec ^ t.tv_usec ^ getpid(); srand48(seed); }