Пример #1
0
        private void InitializeChunkGenerators(uint chunkGeneratorCount)
        {
            _chunkGeneratorCount     = chunkGeneratorCount;
            _nextChunkGeneratorIndex = 0;
            _chunkGenerators         = new IChunkGenerator[_chunkGeneratorCount];
            var seed = new Seed(CryptoRand.NextInt64());

            for (var i = 0; i < _chunkGeneratorCount; ++i)
            {
                _chunkGenerators[i] = _chunkFactory.CreateChunkGenerator(seed);
            }
        }
Пример #2
0
 public Seed() : this(CryptoRand.NextInt64())
 {
 }