Searched defs:hRand (Results 1 - 11 of 11) sorted by relevance

/vbox/src/VBox/Runtime/testcase/
H A DtstRTSort.cpp69 RTRAND hRand; local
70 RTTESTI_CHECK_RC_OK_RETV(RTRandAdvCreateParkMiller(&hRand));
81 Data.aValues[i] = RTRandAdvU32(hRand);
H A DtstRTMemPool.cpp181 RTRAND hRand; local
182 RTTESTI_CHECK_RC_OK_RETV(RTRandAdvCreateParkMiller(&hRand));
199 if (RTRandAdvU32Ex(hRand, 0, 4) == 4)
201 uint32_t iFree = RTRandAdvU32Ex(hRand, 0, j);
212 RTRandAdvDestroy(hRand);
H A DtstRTStrCache.cpp86 RTRAND hRand; local
87 RTTESTI_CHECK_RC_RETV(RTRandAdvCreateParkMiller(&hRand), VINF_SUCCESS);
91 uint32_t cch = RTRandAdvU32Ex(hRand, 3, sizeof(szBuf) - 1);
92 RTRandAdvBytes(hRand, szBuf, cch);
108 RTRandAdvDestroy(hRand);
H A DtstRTCritSectRw.cpp66 RTRAND hRand; local
67 RTTEST_CHECK_RC_OK_RET(g_hTest, rc = RTRandAdvCreateParkMiller(&hRand), rc);
68 RTTEST_CHECK_RC_OK_RET(g_hTest, rc = RTRandAdvSeed(hRand, (uintptr_t)ThreadSelf), rc);
69 unsigned c100 = RTRandAdvU32Ex(hRand, 0, 99);
75 unsigned readrec = RTRandAdvU32Ex(hRand, 0, 3);
76 unsigned writerec = RTRandAdvU32Ex(hRand, 0, 3);
211 RTRandAdvDestroy(hRand);
H A DtstRTSemRW.cpp65 RTRAND hRand; local
66 RTTEST_CHECK_RC_OK_RET(g_hTest, rc = RTRandAdvCreateParkMiller(&hRand), rc);
67 RTTEST_CHECK_RC_OK_RET(g_hTest, rc = RTRandAdvSeed(hRand, (uintptr_t)ThreadSelf), rc);
68 unsigned c100 = RTRandAdvU32Ex(hRand, 0, 99);
74 unsigned readrec = RTRandAdvU32Ex(hRand, 0, 3);
75 unsigned writerec = RTRandAdvU32Ex(hRand, 0, 3);
210 RTRandAdvDestroy(hRand);
H A DtstRand.cpp99 static int tstRandAdv(RTRAND hRand) argument
132 uint32_t uRand = RTRandAdvU32Ex(hRand, uFirst, uLast);
177 uint64_t uRand = RTRandAdvU64Ex(hRand, uFirst, uLast);
235 int32_t iRand = RTRandAdvS32Ex(hRand, iFirst, iLast);
304 int64_t iRand = RTRandAdvS64Ex(hRand, iFirst, iLast);
320 int rc = RTRandAdvSaveState(hRand, szState, &cbState);
323 CHECK_EXPR_MSG(rc == VINF_SUCCESS, ("RTRandAdvSaveState(%p,,256) -> %Rrc (%d)\n", (uintptr_t)hRand, rc, rc));
324 uint32_t const u32A1 = RTRandAdvU32(hRand);
325 uint32_t const u32B1 = RTRandAdvU32(hRand);
328 rc = RTRandAdvRestoreState(hRand, szStat
584 RTRAND hRand; local
[all...]
/vbox/src/VBox/Storage/testcase/
H A DVDIoRnd.cpp37 RTRAND hRand; member in struct:VDIORND
56 rc = RTRandAdvCreateParkMiller(&pIoRnd->hRand);
59 RTRandAdvSeed(pIoRnd->hRand, uSeed);
60 RTRandAdvBytes(pIoRnd->hRand, pIoRnd->pbPattern, cbPattern);
85 RTRandAdvDestroy(pIoRnd->hRand);
99 *ppv = pIoRnd->pbPattern + RT_ALIGN_64(RTRandAdvU64Ex(pIoRnd->hRand, 0, pIoRnd->cbPattern - cb - 512), 512);
106 return RTRandAdvU32Ex(pIoRnd->hRand, uMin, uMax);
H A DtstVDIo.cpp1587 RTRAND hRand; local
1588 rc = RTRandAdvCreateSystemTruer(&hRand);
1591 RTRandAdvBytes(hRand, &uSeedToUse, sizeof(uSeedToUse));
1592 RTRandAdvDestroy(hRand);
/vbox/src/VBox/Runtime/common/rand/
H A Drand.cpp62 RTRAND hRand; local
63 int rc = RTRandAdvCreateSystemFaster(&hRand);
65 rc = RTRandAdvCreateParkMiller(&hRand);
69 RTRandAdvSeed(hRand, ASMReadTSC() >> 8);
71 RTRandAdvSeed(hRand, RTTimeNanoTS() >> 8);
73 g_hRand = hRand;
94 RTRAND hRand = g_hRand; local
96 if (hRand != NIL_RTRAND)
98 int rc = RTRandAdvDestroy(hRand);
/vbox/src/VBox/ValidationKit/utils/cpu/
H A Dcidet-core.cpp151 int CidetCoreInit(PCIDETCORE pThis, RTRAND hRand) argument
154 AssertPtr(hRand);
158 pThis->hRand = hRand;
167 RTRandAdvDestroy(pThis->hRand);
214 int64_t iVal = RTRandAdvS64(pThis->hRand);
239 uint64_t uVal = RTRandAdvU64(pThis->hRand);
H A Dcidet.h798 RTRAND hRand; member in struct:CIDETCORE
1069 int CidetCoreInit(PCIDETCORE pThis, RTRAND hRand);

Completed in 66 milliseconds