From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTP id 3CF9948B35
	for <ffmpegdev@gitmailbox.com>; Wed,  3 Jan 2024 22:29:52 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E8FCB68CCB5;
	Thu,  4 Jan 2024 00:29:51 +0200 (EET)
Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net
 [217.70.183.201])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EB59468BCEC
 for <ffmpeg-devel@ffmpeg.org>; Thu,  4 Jan 2024 00:29:45 +0200 (EET)
Received: by mail.gandi.net (Postfix) with ESMTPSA id 517781BF204
 for <ffmpeg-devel@ffmpeg.org>; Wed,  3 Jan 2024 22:29:45 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc;
 s=gm1; t=1704320985;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=dSgpF7mY9jpKMP9WXqi0zfzQxtCcrXtdCrVFnqxevxU=;
 b=Wx6hMQRtzqAeh6OjuchXZ/I1jp9LDloAmsgZof9dTQqxhwnCfKvIWj+RTxRjOGrLHGaAZB
 wV/oqsUIuUztRRkbii7ThZPqaGBUkXcE7WX528c0zAtyLYr3wVlPmBHQXEtcU49Pc3k9TO
 uG1hyiDkSSi32QRNz8jkHlRODsRZcA/rcxOmY353Ozqn4kjrQAxaZn2ZC/9ddN8UIGjVsD
 gMkXZDCy4CVUqNfVcwd2DWYVSEZMHmTyxnXbADPug0fZIkSlQkKGz/vvUxpT/ICF87BI7q
 ug8ws4ZUtEku6z8+7qGHUsHYePljubAdt4/9RS4CWM++tKy0tCXNHRPOmJgVww==
Date: Wed, 3 Jan 2024 23:29:44 +0100
From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Message-ID: <20240103222944.GB6420@pb2>
References: <ZZWH5w8BVTYSQ5qC@mariano>
 <5c4289cc-dc42-0e3b-6ff2-3e215c553e62@t-online.de>
MIME-Version: 1.0
In-Reply-To: <5c4289cc-dc42-0e3b-6ff2-3e215c553e62@t-online.de>
X-GND-Sasl: michael@niedermayer.cc
Subject: Re: [FFmpeg-devel] [PATCH 2/2] doc/utils/eval: clarify meaning of
 random* seed value
X-BeenThere: ffmpeg-devel@ffmpeg.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org>
List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe>
List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel>
List-Post: <mailto:ffmpeg-devel@ffmpeg.org>
List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help>
List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe>
Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Content-Type: multipart/mixed; boundary="===============2617217006459537075=="
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/20240103222944.GB6420@pb2/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>


--===============2617217006459537075==
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="IX90eA9TrNyovXdQ"
Content-Disposition: inline


--IX90eA9TrNyovXdQ
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 03, 2024 at 07:36:00PM +0100, Michael Koch wrote:
> Possible better algorithm for the random generator, which might fix the
> problem:
>=20
> eval.c=A0 line 235
>=20
> if (r =3D=3D 0)
> =A0 r =3D UINT64_MAX/13;
> else
> =A0 r =3D r*1664525+1013904223;

This modifies the properties of the PRNG as it doesnt just change
the seed but jumps the generator from 0 to a differnt value, that
may happen more often than just at the start

posted a more correct fix for the low quality numbers

thx

[...]
--=20
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

What does censorship reveal? It reveals fear. -- Julian Assange

--IX90eA9TrNyovXdQ
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZZXf0QAKCRBhHseHBAsP
qy1hAJ9k7h4+FS5vD8gPZJRWWjQPBJKiiwCfb/SgPSvqXKtSUT/gzLOBLPoz4V4=
=32n9
-----END PGP SIGNATURE-----

--IX90eA9TrNyovXdQ--

--===============2617217006459537075==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
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".

--===============2617217006459537075==--