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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user