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
..
2019-11-23 22:39:07 +01:00
2019-11-23 22:39:40 +01:00
2020-10-05 12:32:51 +02:00
2020-02-20 13:24:14 +01:00
2019-11-23 22:39:37 +01:00
2020-04-07 17:48:39 +02:00
2019-11-23 22:39:38 +01:00
2020-09-02 19:16:30 +02:00
2020-06-19 10:44:56 +02:00
2020-09-10 10:08:27 +02:00
2020-06-10 21:21:33 +02:00
2020-02-11 13:59:59 +01:00
2020-10-05 18:27:58 +02:00