lkml.org 
[lkml]   [2004]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: [PATCH] get_random_bytes returns the same on every boot
On Mon, 26 Jul 2004, Eble, Dan wrote:
> If many systems are booting at the same time, is seeding with the system
> time really an appropriate solution? Shouldn't some system-specific
> value also contribute to the randomization?

Yes, i agree, it would be nicer, if we could also use some
system-specific stuff for the seeding, but i don't know if there is
such data during the initialization of the random module. For example,
we may use the MAC address of a network device, but unless i am mistaken
the initialization of such network devices take place after the random
dirver init.

By the way, i made a little test with 40 computers. They were totally
equvivalent by hardware, and all of them had a synchronized system
clock. I turned them on by Wake On LAN exactly at the same time. All of
them used the kernel level ip autoconfig, all of them got their right IP
address, and i didn't even find a line of DHCPNAK in the dhcpd logfile.

Conclusion: Although using some system-specific data and the clock would
be nicer, the system time alone also does the right thing dependably.

bye,
Cus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.799 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site