From d3442e78f7fc56aa7c9d788ff5b04183b109f51f Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 30 Dec 2020 14:57:55 +0530 Subject: make mods as requested --- q8/rsa.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'q8/rsa.cpp') diff --git a/q8/rsa.cpp b/q8/rsa.cpp index c38e7d6..c33bf7e 100644 --- a/q8/rsa.cpp +++ b/q8/rsa.cpp @@ -47,10 +47,10 @@ int main() { cin.getline(text, sizeof(text)); len = strlen(text); do { - p = rand() % 30; + p = rand() % 800; } while (!isprime(p)); do { - q = rand() % 30; + q = rand() % 800; } while (!isprime(q)); n = p * q; phi = (p - 1) * (q - 1); -- cgit v1.2.3