X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-osf.c;h=d1b82200e467fbab78bf64bc75c1b6738497172d;hp=42acdd85fb6b7ff0017716e8ee45ecacc9a0f162;hb=d6eab2ab82f50135fcff32e235ba03b8cad560ba;hpb=01ab847385f3d3abe64dbf4bea5363da3e6e1d64 diff --git a/pppd/sys-osf.c b/pppd/sys-osf.c index 42acdd8..d1b8220 100644 --- a/pppd/sys-osf.c +++ b/pppd/sys-osf.c @@ -26,7 +26,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-osf.c,v 1.12 1997/04/30 05:58:44 paulus Exp $"; +static char rcsid[] = "$Id: sys-osf.c,v 1.13 1998/03/25 02:19:27 paulus Exp $"; #endif #include @@ -1517,6 +1517,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.