Brunet.Cdc.LocalHashTable.CreateRandomKey C# (CSharp) Метод

CreateRandomKey() публичный Метод

public CreateRandomKey ( ) : MemBlock
Результат MemBlock
    override public MemBlock CreateRandomKey() {
      /*
       * As long as we use System.Random, there is
       * no use in putting more than 4 bytes, since
       * there are only 4 bytes of randomness in System.Random,
       * so, given 4 bytes, you can compute all the future
       * values.
       */
      byte[] key_buf = new byte[4];
      _rand.NextBytes(key_buf);
      return MemBlock.Reference(key_buf);
    }
    /** End of a Compare-and-Swap