From: Paul Mackerras Date: Wed, 25 Mar 1998 03:07:49 +0000 (+0000) Subject: use get_host_seed not gethostid X-Git-Tag: RELEASE_2_3_6~99 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=017cb31c4b760e7d8dcd5362b1ca9355313df743 use get_host_seed not gethostid --- diff --git a/pppd/magic.c b/pppd/magic.c index 9e95994..db48ee8 100644 --- a/pppd/magic.c +++ b/pppd/magic.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: magic.c,v 1.6 1996/04/04 03:58:41 paulus Exp $"; +static char rcsid[] = "$Id: magic.c,v 1.7 1998/03/25 03:07:49 paulus Exp $"; #endif #include @@ -46,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); }