Refactor runtime bootstrap and ship control flows
This commit is contained in:
@@ -520,6 +520,8 @@ public sealed class SystemGenerationService
|
||||
private static float Jitter(int index, int salt, float amplitude) =>
|
||||
(Hash01(index, salt) * 2f - 1f) * amplitude;
|
||||
|
||||
// Cheap deterministic pseudo-random helper: same (index, salt) pair always maps to the same 0..1 value.
|
||||
// Generation code uses it instead of a mutable RNG so each procedural choice stays stable for a given seed.
|
||||
private static float Hash01(int index, int salt)
|
||||
{
|
||||
uint value = (uint)(index + 1);
|
||||
|
||||
Reference in New Issue
Block a user