Use absl::uint128 for AES random number generator
authorBenjamin Barenblat <bbaren@google.com>
Fri, 27 May 2022 20:58:38 +0000 (21:58 +0100)
committerBenjamin Barenblat <bbaren@debian.org>
Fri, 27 May 2022 20:58:38 +0000 (21:58 +0100)
commitb5b441cbcb3602506d698962078a875841b98008
treea3ee35d53376c4fe2bc11c85ccaaabbd65f118d2
parent5883f402a727a4ba977bf03f9fc4c1478ed78a7b
Use absl::uint128 for AES random number generator

Forwarded: yes
Applied-Upstream: https://github.com/abseil/abseil-cpp/commit/b06e719ee985ecd63e0dffbc68499549216f817f

Replace randen’s internal 128-bit integer struct, u64x2, with
absl::uint128. This eliminates some code and improves support for
big-endian platforms.

The author works at Google. Upstream applied this patch as Piper
revision 383475671 and exported it to GitHub; the Applied-Upstream URL
above points to the exported commit.

Gbp-Pq: Name big-endian-random.diff
absl/random/internal/BUILD.bazel
absl/random/internal/randen_hwaes.cc
absl/random/internal/randen_slow.cc