1
0
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:
Zdenek Kabelac 2023-04-26 14:05:12 +02:00
parent 242bf56413
commit 4fd2f433ad

View File

@ -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);
}