mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: hide problem with 64bit time_t
This commit is contained in:
parent
242bf56413
commit
4fd2f433ad
@ -1506,7 +1506,7 @@ static void _init_rand(struct cmd_context *cmd)
|
||||
return;
|
||||
}
|
||||
|
||||
cmd->rand_seed = (unsigned) time(NULL) + (unsigned) getpid();
|
||||
cmd->rand_seed = (unsigned) ((time(NULL) + getpid()) & 0xffffffff);
|
||||
reset_lvm_errno(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user