pike.git / src / stuff.c

version» Context lines:

pike.git/src/stuff.c:198: Inside #if HAS___BUILTIN_IA32_RDRAND32_STEP
   /* hardware random unit most likely not healthy.    Switch to software random. */    use_rdrnd = 0;    }   #endif    return ((INT64)ranval()<<32) | ranval();   }      PMOD_EXPORT unsigned INT32 my_rand(unsigned INT32 limit)   { -  if(!limit) +  if(limit==0xffffffff)    return low_rand();    return low_rand()%limit;   }      PMOD_EXPORT unsigned INT64 my_rand64(unsigned INT64 limit)   { -  if(!limit) +  if(limit==0xffffffffffffffff)    return low_rand64();    return low_rand64()%limit;   }