Net.Pkcs11Interop.HighLevelAPI81.Session.SeedRandom C# (CSharp) Method

SeedRandom() public method

Mixes additional seed material into the token's random number generator
public SeedRandom ( byte seed ) : void
seed byte Seed material
return void
        public void SeedRandom(byte[] seed)
        {
            if (this._disposed)
                throw new ObjectDisposedException(this.GetType().FullName);

            if (seed == null)
                throw new ArgumentNullException("seed");

            CKR rv = _p11.C_SeedRandom(_sessionId, seed, Convert.ToUInt64(seed.Length));
            if (rv != CKR.CKR_OK)
                throw new Pkcs11Exception("C_SeedRandom", rv);
        }