Skip to content

Commit f0055bd

Browse files
authored
Update amdahl/amdahl.py
1 parent 203ac27 commit f0055bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

amdahl/amdahl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def parse_command_line():
160160
def amdahl():
161161
"""Amdahl's law illustrator (with fake work)"""
162162
rank = MPI.COMM_WORLD.Get_rank()
163+
# Ensure that all ranks use a guaranteed unique seed when generating random numbers
163164
random.seed(int(time.time()) + rank)
164165
# Only the root process handles the command line arguments
165166
if rank == 0:

0 commit comments

Comments
 (0)