commit | 7e9aa2d94c2bc110226fbdec0528f0d26b303a95 | [log] [tgz] |
---|---|---|
author | Ben Lawson <benlawson@google.com> | Wed Dec 21 02:27:00 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 21 02:27:00 2022 +0000 |
tree | 3027858a5e85bbabdeaa428973dc76fe58cfca14 | |
parent | 19b7f0749f092c56bf3c61520f917b4c0f7ea957 [diff] |
pw_random: Make explicit narrowing conversion explicit Make implicit conversion of uint64_t to uint32_t in XorShiftStarRng64::InjectEntropyBits explicit. This fixes an error in builds configured with the flags [-Werror,-Wshorten-64-to-32], such as the Fuchsia build. Change-Id: I0e172cb35597b11df2ab4be496815c3556d707b1 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/125050 Reviewed-by: Keir Mierle <keir@google.com> Commit-Queue: Ben Lawson <benlawson@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.