]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libuuid: introduce uuid_generate_time_safe()
authorPetr Uzel <petr.uzel@suse.cz>
Mon, 14 Feb 2011 13:43:29 +0000 (14:43 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Feb 2011 15:07:16 +0000 (16:07 +0100)
commit5ce8da3c33ce4e5c406447c9a797311082e8f955
treebc4fdef63d9c6e87bacf5aad156ae28ccf8348eb
parent46bae9f3403a6b31e729834b39eae3a8e430fbd9
libuuid: introduce uuid_generate_time_safe()

The problem with libuuid interface is that it is impossible to
inform the caller of uuid_generate_time() if the UUID was generated
in a safe manner (either via uuidd, or using the global clock state
counter).

This patch introduces new function,

int uuid_generate_time_safe(uuid_t out)

which can report whether the generated UUID is safe.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
shlibs/uuid/src/gen_uuid.c
shlibs/uuid/src/uuid.h
shlibs/uuid/src/uuid.sym