]> git.ipfire.org Git - thirdparty/shadow.git/commit
Unoptimize the higher part of the domain of csrand_uniform()
authorAlejandro Colomar <alx@kernel.org>
Mon, 30 Jan 2023 12:13:36 +0000 (13:13 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Mon, 30 Jan 2023 17:24:15 +0000 (18:24 +0100)
commit2a61122b5e8f89484dcc88dfd5f6c11de2d8c95a
treee0844a525109016a06ddc04bb44f319991b35b41
parent0712b236c3bc93987ce64f7631f5a9fa4b042f4f
Unoptimize the higher part of the domain of csrand_uniform()

__int128, which is needed for optimizing that part of the range, is not
always available.  We need the unoptimized version for portability
reasons.

Closes: <https://github.com/shadow-maint/shadow/issues/634>
Fixes: 1a0e13f94edc ("Optimize csrand_uniform()")
Reported-by: Adam Sampson <ats@offog.org>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
libmisc/csrand.c