On Tue, Sep 10, 2013 at 1:50 PM, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote: > On Tue, Sep 10, 2013 at 11:40 AM, Tim Bird <tbird20d@xxxxxxxxx> wrote: >> How much time does it add to boot to feed the device tree into the >> random number pool. >> >> Some of the device trees are expected to get pretty big. If it's over >> a millisecond, IMHO, it should be configurable (but this is not). > > It's detinitely not a very fast operation. ... > So it might even be a better idea to feed the device tree to a hashing > function (eg SHA1 or even just MD5), and then just mix in the hash. At > least most block hash functions do things a word at a time. It does > *not* need to be cryptographically secure, so MD5 would be plenty good > enough - the only point of the hash would be to give a meaningful > number of result bits from the source array. Well, I'm not sure how many bits of randomness this will add anyway. The way we're using device tree, we get the same values every boot, on all instances of the same phone model. So this seems of little value. Anton, Are there presumably some random fields in device tree? Is this being used to pass randomness from the bootloader? Or are you trying to mix in some "randomness" about the hardware configuration? I'm trying to understand the rationale for this. -- Tim Bird Senior Software Engineer, Sony Mobile Architecture Group Chair, CE Workgroup, Linux Foundation -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html