Skip to content

Tests of find_primitime_root#14

Open
webhive wants to merge 1 commit intoRyanRiddle:masterfrom
webhive:master
Open

Tests of find_primitime_root#14
webhive wants to merge 1 commit intoRyanRiddle:masterfrom
webhive:master

Conversation

@webhive
Copy link

@webhive webhive commented Mar 14, 2020

Tested find_primitime_root function over known values from here https://en.wikipedia.org/wiki/Primitive_root_modulo_n#Elementary_example

So something goes wrong. Pretty often your function generate wrong value.

Prepared tests to check it.
To reproduce need to run tests several times.

@webhive
Copy link
Author

webhive commented Mar 14, 2020

I think here https://github.com/RyanRiddle/elgamal/blob/master/elgamal.py#L172 is wrong assumtion about only 2 divisors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant