summaryrefslogtreecommitdiffhomepage
path: root/kex_gex.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2003-11-04 08:50:22 +0000
committerRobey Pointer <robey@lag.net>2003-11-04 08:50:22 +0000
commit3b9901a602085fdee66249b14f83c158864b5f33 (patch)
tree3a7711b90e09ef8553d6d929868f9f5fd172ec57 /kex_gex.py
parent51607386c7609a483568ad935083c9668fe6241b (diff)
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-1]
no changes why aren't my log messages kept?
Diffstat (limited to 'kex_gex.py')
-rw-r--r--kex_gex.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kex_gex.py b/kex_gex.py
index 01e74f2b..cf4b6d3c 100644
--- a/kex_gex.py
+++ b/kex_gex.py
@@ -94,10 +94,11 @@ class KexGex(object):
self.max_bits = max
# generate prime
while 1:
+ # does not work FIXME
self.transport.log(DEBUG, 'stir...')
self.transport.randpool.stir()
self.transport.log(DEBUG, 'get-prime %d...' % preferred)
- self.p = number.getRandomNumber(preferred, self.transport.randpool.get_bytes)
+ self.p = number.getPrime(preferred, self.transport.randpool.get_bytes)
self.transport.log(DEBUG, 'got ' + repr(self.p))
if number.isPrime((self.p - 1) // 2):
break