fix : random seed problem fixed.

pull/201/head
Sadra Sabouri 2023-12-04 21:55:29 -08:00
rodzic 8c29607866
commit 0b77d3f330
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -47,7 +47,6 @@ class GenerativeImage:
:param func_seed: random seed for function generation
:type func_seed: Any
"""
random.seed(func_seed)
_GI_initializer(self, function1, function2)
if config is not None:
load_config(self, config)
@ -62,6 +61,8 @@ class GenerativeImage:
self.python_version,
self.__version__),
RuntimeWarning)
if func_seed is not None:
random.seed(func_seed)
if self.function1 is None:
if self.function1_str is None:
self.function1_str = random_equation_gen()