Skip to content
Snippets Groups Projects
  1. Feb 11, 2019
  2. Feb 10, 2019
  3. Feb 09, 2019
  4. Feb 08, 2019
    • David Sidrane's avatar
      test time: Fixed bad assumption about RAND_MAX (#11414) · c6edf41a
      David Sidrane authored
      usleep range was up to 2147 Seconds
      
         Per open group: The rand() function shall compute a
         sequence of pseudo-random integers in the range
         [0, {RAND_MAX}]  with a period of at least 2^32
      
         {RAND_MAX} Maximum value returned by rand();
         at least 32767.
      
         /* Maximum value returned by rand().  Must be a minimum of 32767. */
      
         #define RAND_MAX INT_MAX
      
        and
      
        #define INT_MAX     2147483647
      c6edf41a
Loading