Pas de 0 ou de o.
darcs-hash:20050421194127-d1718-a60f121f502fe947a213f2c2abe34c7d9870ba72.gz
This commit is contained in:
parent
986ba0d0e8
commit
29b5544dcd
1 changed files with 3 additions and 3 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue