import time from Crypto.Util import number # Test of prime-generation speed # This randfunc is deterministic, so we should always find the same primes. chars = ''.join(map(chr, range(255, 0, -1))) def randfunc (N): s = '' while len(s)