1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-08 19:33:19 +03:00

Make _init_rand() thread safe - use rand_r() instead of rand().

Use good entropy for seed value if possible.
This commit is contained in:
Dave Wysochanski
2008-12-07 04:27:56 +00:00
parent 30e6773617
commit 647314d3cc
8 changed files with 21 additions and 12 deletions

View File

@@ -62,6 +62,7 @@ struct cmd_context {
const char *hostname;
const char *kernel_vsn;
unsigned rand_seed;
char *cmd_line;
struct command *command;
struct arg *args;