From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 2 Apr 2014 17:18:50 -0400 Subject: [U-Boot] [U-Boot, v6, 3/6] lib: uuid: add functions to generate UUID version 4 In-Reply-To: <1396426807-30510-3-git-send-email-p.marczak@samsung.com> References: <1396426807-30510-3-git-send-email-p.marczak@samsung.com> Message-ID: <20140402211850.GF16360@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Stephen Warren > Cc: Lukasz Majewski > 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: