From 132bbec9680e29081ec58fd03c6d2177f5ae6823 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 9 Apr 2008 11:09:49 -0700 Subject: [PATCH] monmaptool: srand when generating fsid --- src/monmaptool.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/monmaptool.cc b/src/monmaptool.cc index 00d2aa2244d..db8efa46475 100644 --- a/src/monmaptool.cc +++ b/src/monmaptool.cc @@ -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++;