
2 Apr
2014
2 Apr
'14
11:18 p.m.
On Wed, Apr 02, 2014 at 10:20:04AM +0200, Przemyslaw Marczak wrote:
This patch adds support to generate UUID (Universally Unique Identifier) in version 4 based on RFC4122, which is randomly.
Source: https://www.ietf.org/rfc/rfc4122.txt
Changes:
- new configs:
- CONFIG_LIB_UUID for compile lib/uuid.c
- CONFIG_RANDOM_UUID for functions gen_rand_uuid() and gen_rand_uuid_str()
- add configs dependency to include/config_fallbacks.h for lib uuid.
lib/uuid.c:
add gen_rand_uuid() - this function writes 16 bytes len binary representation of UUID v4 to the memory at given address.
add gen_rand_uuid_str() - this function writes 37 bytes len hexadecimal ASCII string representation of UUID v4 to the memory at given address.
Signed-off-by: Przemyslaw Marczak p.marczak@samsung.com Cc: Stephen Warren swarren@nvidia.com Cc: Lukasz Majewski l.majewski@samsung.com Cc: trini@ti.com
Applied to u-boot/master, thanks!
--
Tom