[U-Boot] [PATCH] lib: uuid: Improve randomness of uuid values on RANDOM_UUID=y

Eugeniu Rosca erosca at de.adit-jv.com
Mon Apr 29 13:00:38 UTC 2019


Hi Lukasz,

Thanks to Roman, we found a potential regression in this solution.

Particularly when gen_rand_uuid() is called in a loop, get_timer(0)
might return the same value, leading to the same seed value being
passed to srand(), leading to the same uuid value being generated
for several partitions.

Please, hold off from applying the patch until I push a v2.

To be more clear, NAK.

-- 
Best Regards,
Eugeniu.


More information about the U-Boot mailing list