Skip to content
Verified Commit 52eb32b8 authored by Levente Polyak's avatar Levente Polyak 🚀
Browse files

fix: gendummydata: ensure valid range for num voters

When only generating a few packages, the code was brittle in clamping
the rand range to 0,0 which is invalid. Make sure to always clamp within
a valid range of 0,1 which fixes the issue no matter the voting
probability option as well as the total package count options.
parent 56d9a276
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment