[ipxe-devel] [PATCH] [device] Improve the seed of the pseudo-random number generator

Michael Brown mcb30 at ipxe.org
Fri Apr 19 13:38:24 UTC 2013


On 12/12/12 16:33, Bernhard Kohl wrote:
> When (re)starting a couple of virtual machines (about 10) on the same host
> it frequently happens that some of them use the same DHCP transaction ID.
>
> This problem can be solved by combining the current timer ticks and the
> least significant bits of the hardware address(es) to get a better
> randomness for the seed.

Applied a roughly equivalent patch which places knowledge of the RNG 
into netdevice.c rather than knowledge of net devices into random.c:

   http://git.ipxe.org/ipxe.git/commitdiff/445ac9f

Thanks, and sorry for the delay in applying!

Michael



More information about the ipxe-devel mailing list