]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Use CUPS_RAND macro instead of rand().
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 9 May 2019 01:49:14 +0000 (21:49 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 9 May 2019 01:49:14 +0000 (21:49 -0400)
tools/ippeveprinter.c

index 7892d656f2e6b1134d25ebd8e20491491bed39c6..b0f9567f2999779d1ff6124764d1b8df6d2b0212 100644 (file)
@@ -6368,7 +6368,7 @@ process_job(ippeve_job_t *job)            /* I - Job */
     * Sleep for a random amount of time to simulate job processing.
     */
 
-    sleep((unsigned)(5 + (rand() % 11)));
+    sleep((unsigned)(5 + (CUPS_RAND() % 11)));
   }
 
   if (job->cancel)