Browse Source

Add seeding for numpy functions

dustin.born 6 years ago
parent
commit
25bc234c5c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      code/Attack/BaseAttack.py

+ 1 - 0
code/Attack/BaseAttack.py

@@ -292,6 +292,7 @@ class BaseAttack(metaclass=abc.ABCMeta):
         """
         if isinstance(seed, int):
             random.seed(seed)
+            np.random.seed(seed)
 
     def set_start_time(self):
         """