git-identity.sh: improve usage
[cmccabe-bin] / pickrand.py
index 558115c..6340971 100755 (executable)
@@ -20,7 +20,7 @@ for root, dirs, files in os.walk("."):
         allfiles.append(os.path.join(root, f))
 if (len(allfiles) == 0):
    sys.exit(1)
-random.seed(None)
+random.seed(os.getpid())
 r = random.randint(0,len(allfiles) - 1)
 print(allfiles[r])
 if (print_to_stderr):