/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTSort.cpp | 69 RTRAND hRand; local 70 RTTESTI_CHECK_RC_OK_RETV(RTRandAdvCreateParkMiller(&hRand)); 81 Data.aValues[i] = RTRandAdvU32(hRand);
|
H A D | tstRTMemPool.cpp | 181 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 D | tstRTStrCache.cpp | 86 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 D | tstRTCritSectRw.cpp | 66 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 D | tstRTSemRW.cpp | 65 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 D | tstRand.cpp | 99 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 D | VDIoRnd.cpp | 37 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 D | tstVDIo.cpp | 1587 RTRAND hRand; local 1588 rc = RTRandAdvCreateSystemTruer(&hRand); 1591 RTRandAdvBytes(hRand, &uSeedToUse, sizeof(uSeedToUse)); 1592 RTRandAdvDestroy(hRand);
|
/vbox/src/VBox/Runtime/common/rand/ |
H A D | rand.cpp | 62 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 D | cidet-core.cpp | 151 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 D | cidet.h | 798 RTRAND hRand; member in struct:CIDETCORE 1069 int CidetCoreInit(PCIDETCORE pThis, RTRAND hRand);
|