libraries/WM_Libraries/Platform/Common/crypto/prng/prng.c
int32 psGetPrng(psRandom_t *ctx, unsigned char *bytes, uint32 size)
{
	psRandom_t		lctx;
	
	if (ctx == NULL) {
		psInitPrng(&lctx);
		return readRandomData(&lctx, bytes, size);
	} 
	return readRandomData(ctx, bytes, size);
}
/*
	Allow NULL context if caller is just doing a single read
*/
Allow NULL context if caller is just doing a single read
Allow NULL context if caller is just doing a single read
int32 psGetPrng(psRandom_t *ctx, unsigned char *bytes, uint32 size)
{
	psRandom_t		lctx;
	if (ctx == NULL) {
		psInitPrng(&lctx);
		return readRandomData(&lctx, bytes, size);
	} 
	return readRandomData(ctx, bytes, size);
}
int32 psGetPrng ( psRandom_t * ctx , unsigned char * bytes , uint32 size ) { psRandom_t lctx ; if ( ctx == NULL ) { psInitPrng ( & lctx ) ; return readRandomData ( & lctx , bytes , size ) ; } return readRandomData ( ctx , bytes , size ) ; }
Allow NULL context if caller is just doing a single read
Allow NULL context if caller is just doing a single read