Lines Matching defs:pThis
54 static DECLCALLBACK(void) rtRandAdvPosixGetBytes(PRTRANDINT pThis, uint8_t *pb, size_t cb)
56 ssize_t cbRead = read(pThis->u.File.hFile, pb, cb);
70 cbRead = read(pThis->u.File.hFile, pb, cb);
79 static DECLCALLBACK(int) rtRandAdvPosixDestroy(PRTRANDINT pThis)
81 pThis->u32Magic = ~RTRANDINT_MAGIC;
82 int fd = pThis->u.File.hFile;
83 pThis->u.File.hFile = -1;
84 RTMemFree(pThis);
101 PRTRANDINT pThis = (PRTRANDINT)RTMemAlloc(sizeof(*pThis));
102 if (pThis)
104 pThis->u32Magic = RTRANDINT_MAGIC;
105 pThis->pfnGetBytes = rtRandAdvPosixGetBytes;
106 pThis->pfnGetU32 = rtRandAdvSynthesizeU32FromBytes;
107 pThis->pfnGetU64 = rtRandAdvSynthesizeU64FromBytes;
108 pThis->pfnSeed = rtRandAdvStubSeed;
109 pThis->pfnSaveState = rtRandAdvStubSaveState;
110 pThis->pfnRestoreState = rtRandAdvStubRestoreState;
111 pThis->pfnDestroy = rtRandAdvPosixDestroy;
112 pThis->u.File.hFile = fd;
114 *phRand = pThis;