There was an error while loading. Please reload this page.
1 parent ccacc3a commit 089ea5eCopy full SHA for 089ea5e
1 file changed
libensemble/tests/functionality_tests/sine_gen.py
@@ -16,8 +16,8 @@ def gen_random_sample(InputArray, persis_info, gen_specs):
16
# Create empty array of "batch_size" zeros. Array dtype should match "out" fields
17
OutputArray = np.zeros(batch_size, dtype=gen_specs["out"])
18
19
- # Set the "x" output field to contain random numbers, using random stream
20
- OutputArray["x"] = persis_info["rand_stream"].uniform(lower, upper, (batch_size, num))
+ # Set the "x" output field to contain random numbers
+ OutputArray["x"] = np.random.uniform(lower, upper, (batch_size, num))
21
22
# Send back our output and persis_info
23
return OutputArray, persis_info
0 commit comments