public static void InitializeHashGrid(int seed) { _hashGrid = new PseudoRandom[HashGridSize * HashGridSize]; var currentState = Random.state; Random.InitState(seed); for (var i = 0; i < _hashGrid.Length; i++) { _hashGrid[i] = PseudoRandom.Create(); } Random.state = currentState; }