commit | ae2868acf0acb6dd5e4426e6c109c02cd16dfec0 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Sun Oct 22 00:18:49 2006 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Sun Oct 22 00:18:49 2006 -0400 |
tree | ed2792654e8ed8f3660a9267c7601d9f8292e44e | |
parent | b6b65c3de480c8e17c2bf9ab12196c7dde325380 [diff] |
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>