mirror of
https://github.com/ceph/ceph
synced 2025-01-10 13:10:46 +00:00
monmaptool: srand when generating fsid
This commit is contained in:
parent
9269ea6bee
commit
132bbec968
@ -111,6 +111,7 @@ int main(int argc, const char **argv)
|
||||
}
|
||||
|
||||
if (create) {
|
||||
srand(getpid() + time(0));
|
||||
monmap.generate_fsid();
|
||||
cout << me << ": generated fsid " << monmap.fsid << std::endl;
|
||||
modified++;
|
||||
|
Loading…
Reference in New Issue
Block a user