Home
last modified time | relevance | path

Searched refs:GetRnd (Results 1 – 3 of 3) sorted by relevance

/external/lzma/Java/SevenZip/
DLzmaBench.java18 public int GetRnd() in GetRnd() method in LzmaBench.CRandomGenerator
36 public int GetRnd(int numBits) in GetRnd() method in LzmaBench.CBitRandomGenerator
48 Value = RG.GetRnd(); in GetRnd()
72 int GetRndBit() { return RG.GetRnd(1); } in GetRndBit()
75 int len = RG.GetRnd(numBits); in GetLogRandBits()
76 return RG.GetRnd((int)len); in GetLogRandBits()
82 return (GetLogRandBits(4) << 10) | RG.GetRnd(10); in GetOffset()
84 int GetLen1() { return RG.GetRnd(1 + (int)RG.GetRnd(2)); } in GetLen1()
85 int GetLen2() { return RG.GetRnd(2 + (int)RG.GetRnd(2)); } in GetLen2()
93 Buffer[Pos++] = (byte)(RG.GetRnd(8)); in Generate()
[all …]
/external/lzma/CS/7zip/Compress/LzmaAlone/
DLzmaBench.cs23 public UInt32 GetRnd() in GetRnd() method in SevenZip.LzmaBench.CRandomGenerator
41 public UInt32 GetRnd(int numBits) in GetRnd() method in SevenZip.LzmaBench.CBitRandomGenerator
53 Value = RG.GetRnd(); in GetRnd()
78 UInt32 GetRndBit() { return RG.GetRnd(1); } in GetRndBit()
81 UInt32 len = RG.GetRnd(numBits); in GetLogRandBits()
82 return RG.GetRnd((int)len); in GetLogRandBits()
88 return (GetLogRandBits(4) << 10) | RG.GetRnd(10); in GetOffset()
90 UInt32 GetLen1() { return RG.GetRnd(1 + (int)RG.GetRnd(2)); } in GetLen1()
91 UInt32 GetLen2() { return RG.GetRnd(2 + (int)RG.GetRnd(2)); } in GetLen2()
99 Buffer[Pos++] = (Byte)RG.GetRnd(8); in Generate()
[all …]
/external/lzma/CPP/7zip/UI/Common/
DBench.cpp104 UInt32 GetRnd() in GetRnd() function in CBaseRandomGenerator
193 buf[i] = (Byte)rg.GetRnd(); in GenerateSimpleRandom()
208 UInt32 r = rg.GetRnd(); in GenerateLz()
235 r = rg.GetRnd(); in GenerateLz()
241 r = rg.GetRnd(); in GenerateLz()
1632 buf[i] = (Byte)RG.GetRnd(); in RandGen()