Whamcloud - gitweb
Add failsafe against duplicate UUID's generated by threaded programs
authorTheodore Ts'o <tytso@mit.edu>
Sun, 22 Oct 2006 04:18:49 +0000 (00:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 22 Oct 2006 04:18:49 +0000 (00:18 -0400)
commitae2868acf0acb6dd5e4426e6c109c02cd16dfec0
treeed2792654e8ed8f3660a9267c7601d9f8292e44e
parentb6b65c3de480c8e17c2bf9ab12196c7dde325380
Add failsafe against duplicate UUID's generated by threaded programs

Add in randomness based on Linux's thread id (gettid) to avoid race
conditions when two threads try to generate uuid's at the same time.
This shouldn't be an issue if /dev/urandom has proper locking and is
present, so this is just a failsafe.

Addresses SourceForge Bug: #1529672

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
ChangeLog
configure
configure.in
lib/uuid/ChangeLog
lib/uuid/gen_uuid.c