public virtual void InitializeNewNeuraliumTimelineEncryptionParameters(BlockchainServiceSet serviceSet)
 {
     // create those no matter what
     if (this.NeuraliumTimelineFileEncryptionParameters == null)
     {
         this.NeuraliumTimelineFileEncryptionParameters = FileEncryptorUtils.GenerateEncryptionParameters(GlobalSettings.ApplicationSettings);
         var secretKey = new byte[333];
         GlobalRandom.GetNextBytes(secretKey);
         this.NeuraliumTimelineFileSecret = secretKey;
     }
 }
Example #2
0
 public override void FillSafeRandom()
 {
     GlobalRandom.GetNextBytes(this.Bytes, this.Length);
 }