commit | a2674e13508b6e11ad4b13578910465be0b31a4b | [log] [tgz] |
---|---|---|
author | Ben Lawson <benlawson@google.com> | Thu Dec 22 18:15:58 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Dec 22 18:15:58 2022 +0000 |
tree | 1bebee112a2f6955aec6973065dd27800a974785 | |
parent | 41b613c26ac34388f693f1f308b7af03b6ec48f4 [diff] |
pw_random: Add RandomGenerator::GetInt(T&, T exclusive_upper_bound) Add method to RandomGenerator for generating an unsigned integer less than a specified upper bound. Change-Id: I48a2ee57dfffbe1917ad6522fe242a822e0f83dd Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/125132 Reviewed-by: Ali Zhang <alizhang@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/.