From 1ca8987a9799a1a093d09de16487702bc1821a7b Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Wed, 25 Mar 1998 03:09:12 +0000 Subject: [PATCH] added get_host_seed --- pppd/sys-ultrix.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pppd/sys-ultrix.c b/pppd/sys-ultrix.c index 43fd115..d956be4 100644 --- a/pppd/sys-ultrix.c +++ b/pppd/sys-ultrix.c @@ -21,7 +21,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-ultrix.c,v 1.21 1997/04/30 05:59:38 paulus Exp $"; +static char rcsid[] = "$Id: sys-ultrix.c,v 1.22 1998/03/25 03:09:12 paulus Exp $"; #endif /* @@ -1217,6 +1217,16 @@ GetMask(addr) } +/* + * Use the hostid as part of the random number seed. + */ +int +get_host_seed() +{ + return gethostid(); +} + + /* Seems like strdup() is not part of string package in Ultrix. If I understood the man-page on the sun this should work. -- 2.39.2