]> Git Repo - u-boot.git/commit - README
new commands: uuid and guid - generate random unique identifier
authorPrzemyslaw Marczak <[email protected]>
Wed, 2 Apr 2014 08:20:05 +0000 (10:20 +0200)
committerTom Rini <[email protected]>
Wed, 2 Apr 2014 20:36:06 +0000 (16:36 -0400)
commit89c8230dec063d894aec1a7b5c58f1dcadced738
treefa131e998ee221582493087f58625b4a8a99afab
parent4e4815feae4d37032a7afce18a4c26074c51f159
new commands: uuid and guid - generate random unique identifier

Those commands basis on implementation of random UUID generator version 4
which is described in RFC4122. The same algorithm is used for generation
both ids but string representation is different as below.

char:  0        9    14   19   24         36
       xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
UUID:     be     be   be   be       be
GUID:     le     le   le   be       be

Commands usage:
- uuid [<varname>]
- guid [<varname>]

The result is saved in environment as a "varname" variable if argument is given,
if not then it is printed.

New config:
- CONFIG_CMD_UUID

Signed-off-by: Przemyslaw Marczak <[email protected]>
Cc: Stephen Warren <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: [email protected]
README
include/config_fallbacks.h
lib/uuid.c
This page took 0.032662 seconds and 4 git commands to generate.