feat(gfpoly_powmod): add more edgecases for 0^0#34
Conversation
|
did not test them, but looks good according to my Base64 BE reading skills :D |
|
did test them and they seem to be ok 🚀 |
tametsi
left a comment
There was a problem hiding this comment.
Hmmmmmm... I think properly seeding your CSPRNG is important for ID generation.
Case lkashjklhakjhajahjahj (0^0 = 1) fails for me, which leads me to suspect that this case is not checked. I would hence propose to remove this case.
|
The testcase did fail for me as well, but thinking about it, the Edit: As I implemented Ord, PartialOrd etc. to sort the polynomials, I switched to |
|
I also had a TIL moment when checking that against Sage and fell in a bit of a rabbit hole. Apparently, this characteristic (0^0=1) is needed for very fundamental mathematical concepts. |
Hmm, I'd disagree for two (imo good) reasons:
Lmk what you think! |
No comment, will forward this to my motoric actors :) |
|
While I don't think that the testcase collections will be changed much more, I do agree, that we should include mathematically correct testcases. While some other edgecases are not properly defined and hence not tested in kartfire, this one is at least defined. |
|
I think we have "a few" wrong testcases in the repo and it somehow magically works with my current implementation on kartfire. I rechecked the results with the comparator I am using for the sorting as well and got these results: Will need to look into this tomorrow thoroughly... |
|
runs on my machine 🚀 |
a2f2096 to
1fbdc76
Compare
1fbdc76 to
a99df3d
Compare
|
Tried to resolve the merge conflict (spoiler: only worked partly) :) |
|
still runs on my machine 🚀 |
|
works for me as well |
Adds edge cases for zero polynomials. Especially the edge case for 0^0=1 is of interest (with 0, 1 as zero/one polynomial).