[U-Boot] [U-Boot, v6, 3/6] lib: uuid: add functions to generate UUID version 4

Tom Rini trini at ti.com
Wed Apr 2 23:18:50 CEST 2014


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 at samsung.com>
> Cc: Stephen Warren <swarren at nvidia.com>
> Cc: Lukasz Majewski <l.majewski at samsung.com>
> Cc: trini at ti.com

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140402/ef4c0efd/attachment.pgp>


More information about the U-Boot mailing list