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*)ð_addr + 2, 4); >>> + memcpy(&t, (char*)ð_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 _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
