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

o tidy up renaming of archive files.

This commit is contained in:
Joe Thornber
2002-01-07 14:21:33 +00:00
parent 197c3f2ab4
commit f5549805b6
3 changed files with 62 additions and 25 deletions

View File

@@ -649,6 +649,11 @@ static int split(char *str, int *argc, char **argv, int max)
return *argc;
}
static void _init_rand(void)
{
srand((unsigned int) time(NULL) + (unsigned int) getpid());
}
static void __init_log(struct config_file *cf)
{
char *open_mode = "a";
@@ -880,6 +885,8 @@ static int init(void)
/* Use LOG_USER for syslog messages by default */
init_syslog(LOG_USER);
_init_rand();
/* send log messages to stderr for now */
init_log(stderr);