Skip to content

Commit

Permalink
Update speed.cc to use the same jitter function as rand.c
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhop committed Jan 7, 2025
1 parent c826c21 commit 1092ead
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/ci/run_benchmark_build_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ function build_aws_lc_fips {
-DENABLE_DILITHIUM=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_SHARED_LIBS=1 \
-DBUILD_TESTING=OFF
-DBUILD_TESTING=OFF \
-DENABLE_FIPS_ENTROPY_CPU_JITTER=1
pushd "$BUILD_ROOT"
ninja install
popd
Expand Down
2 changes: 1 addition & 1 deletion tool/speed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2369,7 +2369,7 @@ static bool SpeedJitter(size_t chunk_size) {

if (!TimeFunction(&results, [&jitter_ec, &input, chunk_size]() -> bool {
size_t bytes =
jent_read_entropy_safe(&jitter_ec, input.get(), chunk_size);
jent_read_entropy(jitter_ec, input.get(), chunk_size);
if (bytes != chunk_size) {
return false;
}
Expand Down

0 comments on commit 1092ead

Please sign in to comment.