X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-ultrix.c;h=d956be4ba4339d542fdefe69606a5e41f2151fa6;hp=43fd115136371f246183337fe0f20ff6d1b880f9;hb=66787f54548cc1e3b7934026ddaa956253073e39;hpb=f69a54671e8b3777681017c01c1984207e3d881d 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.