Lines Matching refs:rg
33 CRandomGenerator RG = new CRandomGenerator();
53 Value = RG.GetRnd();
63 CBitRandomGenerator RG = new CBitRandomGenerator();
78 UInt32 GetRndBit() { return RG.GetRnd(1); }
81 UInt32 len = RG.GetRnd(numBits);
82 return RG.GetRnd((int)len);
88 return (GetLogRandBits(4) << 10) | RG.GetRnd(10);
90 UInt32 GetLen1() { return RG.GetRnd(1 + (int)RG.GetRnd(2)); }
91 UInt32 GetLen2() { return RG.GetRnd(2 + (int)RG.GetRnd(2)); }
94 RG.Init();
99 Buffer[Pos++] = (Byte)RG.GetRnd(8);
103 if (RG.GetRnd(3) == 0)
273 CBenchRandomGenerator rg = new CBenchRandomGenerator();
275 rg.Set(kBufferSize);
276 rg.Generate();
279 crc.Update(rg.Buffer, 0, rg.BufferSize);
289 MemoryStream inStream = new MemoryStream(rg.Buffer, 0, (int)rg.BufferSize);