Lines Matching defs:pContext
293 FX_LPMTRANDOMCONTEXT pContext = FX_Alloc(FX_MTRANDOMCONTEXT, 1);
294 if (!pContext) {
297 pContext->mt[0] = dwSeed;
298 FX_DWORD &i = pContext->mti;
299 FX_LPDWORD pBuf = pContext->mt;
303 pContext->bHaveSeed = TRUE;
304 return pContext;
306 FX_DWORD FX_Random_MT_Generate(FX_LPVOID pContext)
308 FXSYS_assert(pContext != NULL);
309 FX_LPMTRANDOMCONTEXT pMTC = (FX_LPMTRANDOMCONTEXT)pContext;
338 void FX_Random_MT_Close(FX_LPVOID pContext)
340 FXSYS_assert(pContext != NULL);
341 FX_Free(pContext);
353 FX_LPVOID pContext = FX_Random_MT_Start(dwSeed);
355 *pBuffer ++ = FX_Random_MT_Generate(pContext);
357 FX_Random_MT_Close(pContext);