MAINLINE lib: uuid: add function to generate UUID version 4
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 19 Feb 2014 15:11:53 +0000 (16:11 +0100)
committerLukasz Majewski <l.majewski@samsung.com>
Tue, 18 Mar 2014 15:48:59 +0000 (16:48 +0100)
commit2f8c00c73ba815b8ff3389e44ccc61768c2a76ab
treededceec5c066d26e2b975317ea90a8ba585f5364
parentaf5dae2e3d25272aec22f919a35968a934367716
MAINLINE lib: uuid: add function to generate UUID version 4

lib/uuid.c:
Add get_uuid_str() - this function returns 36 character hexadecimal ASCII
string representation of a 128-bit (16 octets) UUID (Universally Unique
Identifier) version 4 based on RFC4122, which is randomly generated.

Source: https://www.ietf.org/rfc/rfc4122.txt

Changes:
Move functions:
- disk/part_efi.c uuid_string() to lib/uuid.c -> uuid_bin_to_str()
- disk/part_efi.c string_uuid() to lib/uuid.c -> uuid_str_to_bin()

Update files:
- include/common.h
- disk/part_efi.c
- lib/Makefile

Change-Id: Ibedbbb4b4133d30dcc689bc4253e13370c9dc924
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
disk/part_efi.c
include/common.h
lib/Makefile
lib/uuid.c