#80 closed enhancement (fixed)
Random seeds???
Reported by: | Juergen Reuter | Owned by: | kilian |
---|---|---|---|
Priority: | P2 | Milestone: | |
Component: | core | Version: | 2.0.0alpha |
Severity: | critical | Keywords: | random seed |
Cc: |
Description
Does WHIZARD 2 at the moment always take the same random seed? # Successive runs produce exactly the same numbers.
Change History (3)
comment:1 Changed 14 years ago by
Priority: | P1 → P2 |
---|---|
Status: | new → assigned |
Type: | defect → enhancement |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed with changeset [1285].
By default, W2 now takes an arbitray seed (from the system clock). The command
seed = 1234
resets the seed to the specified value.
Note: See
TracTickets for help on using
tickets.
The random seed is set to zero at initialization. Setting a different seed, or using some unpredictable seed, is an option that I wanted to implement later.