Search Issue Tracker
Fixed in 2.1.7
Votes
0
Found in [Package]
2.1.6
Issue ID
1155434
Regression
No
Seeded UnityEngine.Random is not deterministic when there is an active Post Process layer in the scene
How to reproduce:
1. Open the attached project ("case_1155434-RNGPPVBugReport.zip")
2. Open the repro scene ("TestScene")
3. Enter play mode, press "R" and note down the numbers in the console
4. Repeat step 3 to confirm that the same numbers are generated each time
5. Activate Main Camera's Post Process Layer component
6. Enter play mode, Press "R" and note down the numbers in the console
Expected results: The same numbers are generated
Actual results: New set of numbers are generated each time, regardless of the given seed
Reproducible with: 2018.4.1f1, 2019.1.4f1, 2019.2.0b3, 2019.3.0a3
Couldn't test with 2017.4 because it does not support Post Processing package
Reproducible with package versions: 2.1.0, 2.1.6
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [UI Builder] Viewport's gizmos for Margin and Padding disappear when dragging to modify the value and the cursor leaves the Spacing section
- "Multiplayer Center" window does not reflect changes made in "Other Packages" section
- Crash on D3DKMTOpenResource when capturing with RenderDoc while GPU Skinning is set to GPU(Batched)
- Editing and saving Curve changes in UI Builder window throws multiple errors in the Console
- [UI Builder] Value is not selected when left clicking on Spacing/Border Widget values
Resolution Note (fix version 2.1.7):
The calls to UnityEngine.Random have been replaced with an internal RNG so it won't have any side effects anymore.