Hello,

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
[2]
http://riot-os.org/api/group__drivers__periph__cpuid.html#ga562e64bc300b062ac82dac98b8af7cf2
_______________________________________________
devel mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/devel

Reply via email to