-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bench Mul128 error #150
Conversation
@jmjac the reason behind not using it is that I was looking for certain determinism in benchmark test. There are lot of variables during benchmarks already, just to make sure we are testing the same thing. I've also noticed that |
Makes sense. For the
so that at max we would be using 250bits which is lower than 251 bits of felt. |
I agree, would you like to add this fix as part of this PR? |
@rodrigo-pino added the fix and simplified the function |
Benchmark for Mul128 was failing when
randomFeltElement
was bigger thanu128
. This should fix it. Also there is(&f.Element{}).SetRandom()
to create felts between[0,q)
. I think we could use it instead of currentrandomFeltElement
implementation unless I'm missing something.