From 017cb31c4b760e7d8dcd5362b1ca9355313df743 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Wed, 25 Mar 1998 03:07:49 +0000 Subject: [PATCH] use get_host_seed not gethostid --- pppd/magic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.2