Pas de 0 ou de o.

darcs-hash:20050421194127-d1718-a60f121f502fe947a213f2c2abe34c7d9870ba72.gz
This commit is contained in:
bernat 2005-04-21 21:41:27 +02:00
parent 986ba0d0e8
commit 29b5544dcd

View file

@ -2086,9 +2086,9 @@ class machine(base_classes_crans) :
if clef == 1 :
# Génération
clef = ''
for i in range(20) :
clef += random.choice(filter(lambda x: x != 'l', string.lowercase) +
filter(lambda x: x != '1', string.digits))
for i in range(22) :
clef += random.choice(filter(lambda x: x != 'l' and x != 'o', string.lowercase) +
filter(lambda x: x != '1' and x != '0', string.digits))
self._set('ipsec',[clef])