Intel® Integrated Performance Primitives

Example of Using Pseudorandom Number Generation Functions

Find Pseudorandom Co-primes

void FindCoPrimes(void){ 
   int size; 
  
   // define Pseudo Random Generator (default settings) 
   ippsPRNGGetSize(&size); 
   IppsPRNGState* pPrng = (IppsPRNGState*)(new Ipp8u [size] ); 
   ippsPRNGInit(160, pPrng); 
  
   // define 256-bits Big Numbers X and Y 
   const int bnBitSize = 256; 
   IppsBigNumState* bnX = New_BN(bnBitSize/32); 
   IppsBigNumState* bnY = New_BN(bnBitSize/32); 
  
Subscribe to Intel® Integrated Performance Primitives