Example #1
0
 protected virtual void Init(T value)
 {
     byte[] buffer = ToSecure(value);
     Seed = new byte[buffer.Length];
     LocalThreadRandom.GetRandom().NextBytes(Seed);
     _secureValue = this.Xor(buffer);
 }
        public override void OnInitialze()
        {
            base.OnInitialze();

            _random = LocalThreadRandom.GetRandom();
        }