Use absl::uint128 for AES random number generator
authorBenjamin Barenblat <bbaren@google.com>
Mon, 7 Feb 2022 16:54:21 +0000 (16:54 +0000)
committerBenjamin Barenblat <bbaren@debian.org>
Mon, 7 Feb 2022 16:54:21 +0000 (16:54 +0000)
commit4ca171f8a8a544d5998b7e8d1c647c3277cae91d
treefd9ba3ffbc6ddb9c284bffa6dd46e027164aece2
parent13991b88b1c6777ca65c8443d2c17c65689b6a51
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