diff options
author | Patryk Duda <pdk@semihalf.com> | 2023-04-13 14:59:14 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-04-13 16:44:15 +0000 |
commit | 74e498c2647dcad68d46022abac34c8c5c6b96b3 (patch) | |
tree | 0f2b84c1cfe6e4e4d3328a0fa2d060291edb6cd9 /include | |
parent | cd7559374de5d6c6ef0f5b26afac1913ba871592 (diff) | |
download | chrome-ec-74e498c2647dcad68d46022abac34c8c5c6b96b3.tar.gz |
trng: Drop trng_rand() function
The function is not used anywhere except test/rng_benchmark.cc, so we
will have a problem with code coverage when implementing the function
using Zephyr API.
The RNG benchmark was modified to use trng_rand_bytes() function.
BUG=b:277029648
BRANCH=none
TEST=./test/run_device_tests.py --board bloonchipper -t rng_benchmark
Change-Id: Ic6cf7e511b2e8fe88a08e9e1c4354f7afa9ae425
Signed-off-by: Patryk Duda <pdk@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4423151
Tested-by: Patryk Duda <patrykd@google.com>
Commit-Queue: Patryk Duda <patrykd@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/trng.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/trng.h b/include/trng.h index 3b28796ed0..21ae041156 100644 --- a/include/trng.h +++ b/include/trng.h @@ -28,13 +28,6 @@ void trng_init(void); void trng_exit(void); /** - * Retrieve a 32 bit random value. - * - * Not supported on all platforms. - **/ -uint32_t trng_rand(void); - -/** * Output len random bytes into buffer. * * Not supported on all platforms. |