Improved seed for zcip

walter harms wharms at bfs.de
Fri Oct 31 12:47:38 UTC 2008



Joachim Nilsson schrieb:

> I clearly hadn't thought this through fully.  Maybe different routing
> tables can help?  Something like this:
> 
>    http://pontus.ullgren.com/view/Multiple_interfaces_on_the_same_subnet
> 
>>> -		memcpy(&t, (char*)&eth_addr + 2, 4);
>>> +		memcpy(&t, (char*)&eth_addr + 2 + if_nametoindex(intf), 4);
>> Oops... you added if_nametoindex() to the _address_!
>> You had to add it to t here:
>>>  		srand(t);
>>>  	}
> 
> Yes, that was surely not my intention, but perhaps makes an even better
> seed? ;-)
> 
>

what is a about  gettimeofday() and tv_usec ? its time in microseconds
and should add some "randomness". or even /dev/urandom with limits in portability.

re,
 wh




More information about the busybox mailing list