mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 00:35:03 +02:00
this is a simple key, not a hash
This commit is contained in:
@@ -95,7 +95,7 @@ def testchallenge(session):
|
|||||||
# Try to get a unique abbreviated ID (10 hex digits)
|
# Try to get a unique abbreviated ID (10 hex digits)
|
||||||
for i in xrange(20):
|
for i in xrange(20):
|
||||||
abbreviation = random()[:10]
|
abbreviation = random()[:10]
|
||||||
if r.hget("shorturl-%s" % abbreviation) is None:
|
if r.get("shorturl-%s" % abbreviation) is None:
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
# Mysteriously unable to get a unique abbreviated session ID!
|
# Mysteriously unable to get a unique abbreviated session ID!
|
||||||
|
|||||||
Reference in New Issue
Block a user