lambdaworks icon indicating copy to clipboard operation
lambdaworks copied to clipboard

fix: correct benchmark data generation in Mersenne31 field benchmarks

Open DeVikingMark opened this issue 2 months ago • 0 comments
trafficstars

Fixed incorrect loop condition in rand_fp4e() and rand_field_elements() functions that used result.capacity() instead of num parameter, which could generate wrong number of test elements.

Changes:

  • Replace result.capacity() with num in loop conditions
  • Add proper documentation to benchmark helper functions
  • Remove TODO comment after implementation

This ensures benchmark functions generate the expected number of test data elements.

DeVikingMark avatar Sep 21 '25 23:09 DeVikingMark