Skip to content

Commit

Permalink
FIX: Actually use the seeded prng
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Nov 3, 2024
1 parent 3031d4d commit 453b080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/harmonwig/harmonwig.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _sample_initial_condition(self):
sigma = math.sqrt(0.5)
freq_factor = math.sqrt(mode["freq"])

Q = random.gauss(mu=0.0, sigma=sigma)
Q = self.rnd.gauss(mu=0.0, sigma=sigma)
Q /= freq_factor
# TODO: Sample momenta as well, attach them to ASE object as velocities
# P = random.gauss(mu=0.0, sigma=sigma)
Expand Down

0 comments on commit 453b080

Please sign in to comment.