X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-sunos4.c;h=a9d970ec91c44e1daef2d3b8083156ed29c8e3e9;hp=74c0217ef2908d7c5ae160164b53dc0a42fec180;hb=6328c849379a86d43f251a1786cc9dece49e53be;hpb=01ab847385f3d3abe64dbf4bea5363da3e6e1d64 diff --git a/pppd/sys-sunos4.c b/pppd/sys-sunos4.c index 74c0217..a9d970e 100644 --- a/pppd/sys-sunos4.c +++ b/pppd/sys-sunos4.c @@ -26,7 +26,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-sunos4.c,v 1.8 1997/04/30 05:58:52 paulus Exp $"; +static char rcsid[] = "$Id: sys-sunos4.c,v 1.9 1998/03/25 02:19:29 paulus Exp $"; #endif #include @@ -1326,6 +1326,15 @@ strioctl(fd, cmd, ptr, ilen, olen) return 0; } +/* + * Use the hostid as part of the random number seed. + */ +int +get_host_seed() +{ + return gethostid(); +} + /* * Code for locking/unlocking the serial device. * This code is derived from chat.c.