[riot-devel] [BLE] Random 48-bit address generation

Jose Alamos jialamos at uc.cl
Wed Jun 15 15:12:03 CEST 2016


I don't know exactly how the BD_ADDR works, but you might try generate a
hash (maybe SHA256? [1]) from CPU ID (function cpuid_get [2]).

Then you can truncate to 48 bits and manually set/fix required bytes. Of
course the truncation makes the hash weaker in terms of the chances of
having 2 same BD_ADDR, but I think that's very unlikely.

Best regards.

[1] http://riot-os.org/api/sha256_8h.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20160615/d42b5f48/attachment.html>

More information about the devel mailing list