maas-devel team mailing list archive
-
maas-devel team
-
Mailing list archive
-
Message #01816
Re: Nonce already used
On 11/07/14 15:40, Gregory Lutostanski wrote:
> Yeah that's the 1.5 branch (just pushed a fix because for some reason we
> set str = None -- strange),
It's to force unicode() use - we don't have byte strings anywhere so the
transition to Python3 will be easier.
> just created a 1.6 branch @
> lp:~lutostag/maas/1.6+nonce-
> generation-fix; will get MPs in shortly tacked onto bug 1190986.
>
> Also didn't know this list existed, so hey everybody! I'm dealing with
> MAAS packaging, so you'll probably see me active on here as well.
Awesome, thanks :)
I'll check out your MP as soon as I see it.
Note that 1.6 is already forked from trunk, but please target to trunk
first and we'll backport the fix.
> On Fri, Jul 11, 2014 at 12:29 AM, Ryan Harper <ryan.harper@xxxxxxxxxxxxx
> <mailto:ryan.harper@xxxxxxxxxxxxx>> wrote:
> Jul 01 18:00:13 <rharper> 100000 iterations of
> generate_nonce_rand(length=128): 0:00:58.942007
> Jul 01 18:00:13 <rharper> 100000 iterations of
> generate_nonce_uuid: 0:00:07.487604
> Jul 01 18:00:36 <rharper> nearly a minute to generate 100k nonces
> via the google oath method versus uuid.uuid4()
I'd say that was fairly conclusive!
References