We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 203ac27 commit f0055bdCopy full SHA for f0055bd
amdahl/amdahl.py
@@ -160,6 +160,7 @@ def parse_command_line():
160
def amdahl():
161
"""Amdahl's law illustrator (with fake work)"""
162
rank = MPI.COMM_WORLD.Get_rank()
163
+ # Ensure that all ranks use a guaranteed unique seed when generating random numbers
164
random.seed(int(time.time()) + rank)
165
# Only the root process handles the command line arguments
166
if rank == 0:
0 commit comments