1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/luid
Benjamin Valentin 6fa15ff3f6 sys/luid: improve luid_base() algorithm
CPU IDs may contain very little entropy. Often only a single byte
may change between two CPUs.

To mitigate this use a somewhat 'proper' hash algorithm (I chose DJB2
hash simply because it's small) and 'extend' it to the required output
size.

For 50 STM32 CPU IDs from the grenoble site, this produces a much more
random LUID output.
2020-10-18 14:52:02 +02:00
..
luid.c sys/luid: improve luid_base() algorithm 2020-10-18 14:52:02 +02:00
Makefile sys/drivers: renamed uuid module to luid 2017-02-27 11:01:20 +01:00