View Issue Details

IDProjectCategoryView StatusLast Update
0000606HeurekaGrowth / productionpublic2023-10-10 08:24
Reporterjonare Assigned To 
Status newResolutionopen 
Product Version2.21.3 
Target Version2.22.0 
Summary0000606: Sapling damage not deterministic
DescriptionThe random seed used when assigning sapling damage in deterministic projections depends on the generated GUID of the prediction unit and the current period.
Additional InformationThis is fine in what I imagine to be almost all user cases. However, when importing a stand register unique GUIDs are generated, which will lead to small and very confusing differences between simulations.
TagsNo tags attached.



2023-10-10 08:24

administrator   ~0000585

Change line 115 in SaplingDamageSimulator.cs to something like rnd = new Random(pUnit.SiteData.VariableX.GetHashCode() + pUnit.SiteData.VariableY.GetHashCode() + pUnit.SiteData.VariableZ.GetHashCode() + _currentPeriod);

Issue History

Date Modified Username Field Change
2023-08-15 14:07 jonare New Issue
2023-08-21 09:10 jonare Target Version 2.22.0 => 2.22.0
2023-10-10 08:24 jonare Note Added: 0000585