mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
Currently time_init() is called after rand_initialize(), but rand_initialize() makes use of the timer on various platforms, and sometimes this timer needs to be initialized by time_init() first. In order for random_get_entropy() to not return zero during early boot when it's potentially used as an entropy source, reverse the order of these two calls. The block doing random initialization was right before time_init() before, so changing the order shouldn't have any complicated effects. Cc: Andrew Morton <[email protected]> Reviewed-by: Stafford Horne <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>