Skip to content

Commit

Permalink
Appease linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Klooss committed Nov 24, 2024
1 parent 1962918 commit 6ca3d9b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/sage/parallel/decorate.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ def parallel(p_iter='fork', ncpus=None, **kwds):
sage: Foo.square_classmethod(3)
9
By default, all subprocesses use the same random seed and therefore the same deterministic randomness.
For functions that should be randomized, we can reseed the random seed in each subprocess::
Expand Down
3 changes: 1 addition & 2 deletions src/sage/parallel/use_fork.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,9 @@ def _subprocess(self, f, dir, args, kwds={}):
invalidate_all()

# Reseed rng, if requested.
if self.reseed_rng == True:
if self.reseed_rng:
set_random_seed(self.worker_seed)


# Now evaluate the function f.
value = f(*args, **kwds)

Expand Down

0 comments on commit 6ca3d9b

Please sign in to comment.