From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 69B804054A for ; Tue, 25 Jan 2022 10:27:53 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C65FC68B070; Tue, 25 Jan 2022 12:27:50 +0200 (EET) Received: from vie01a-dmta-pe04-1.mx.upcmail.net (vie01a-dmta-pe04-1.mx.upcmail.net [62.179.121.163]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4CB0D68AE79 for ; Tue, 25 Jan 2022 12:27:45 +0200 (EET) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-pe04.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1nCIxl-006wqy-0E for ffmpeg-devel@ffmpeg.org; Tue, 25 Jan 2022 11:22:09 +0100 Received: from localhost ([213.47.68.29]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id CIwnn6KxgSgGFCIwnnHKlq; Tue, 25 Jan 2022 11:21:09 +0100 X-Env-Mailfrom: michael@niedermayer.cc X-Env-Rcptto: ffmpeg-devel@ffmpeg.org X-SourceIP: 213.47.68.29 X-CNFS-Analysis: v=2.3 cv=f8Q2+96M c=1 sm=1 tr=0 a=2hcxjKEKjp0CzLx6oWAm4g==:117 a=2hcxjKEKjp0CzLx6oWAm4g==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=GEAsPZ9sns4A:10 a=ZZnuYtJkoWoA:10 a=g-c9W3f_86EyvXsXexMA:9 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Tue, 25 Jan 2022 11:21:08 +0100 Message-Id: <20220125102109.522-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 X-CMAE-Envelope: MS4wfP/BuDeq29rkRmq8uWK9lY0WvV18CvGdsTglGmRlsYD2m9VYtGTkZdFlYP9FrCaa2VrqOMBvaIlvdZ6LXUBaZn5nL4pcHPnniuWF1scc1yN8PRiqZy7n dIYwXo9+hamVRXzrn+lddwYfYkskqhg+lQAMcYaC4if9Gh6ThAQ0Pld0 Subject: [FFmpeg-devel] [PATCH 1/2] avutil/random_seed: Speed up fate test X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: This decreases the quality of the seeds during the test, it does not affect the seeds outside the test. There is a small chance that this causes test failures, if that happens the threshold needs adjusting Testing on an idle x86_64 system shows that this passes even with the test strength increased to 32768 from 256 with 0 retries So test failures are not anticipated Lowering the threshold from 3 to 2 causes failure at test strength of 32768 Signed-off-by: Michael Niedermayer --- libavutil/random_seed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/random_seed.c b/libavutil/random_seed.c index 70dc509d2f..509b74936c 100644 --- a/libavutil/random_seed.c +++ b/libavutil/random_seed.c @@ -95,7 +95,7 @@ static uint32_t get_generic_seed(void) last_td = t - last_t; buffer[++i & 511] += last_td % 3294638521U; if ((t - init_t) >= CLOCKS_PER_SEC>>5) - if (last_i && i - last_i > 4 || i - last_i > 64 || TEST && i - last_i > 8) + if (last_i && i - last_i > 4 || i - last_i > 64 || TEST && i - last_i > 3) break; } last_t = t; -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".