| 
  | 
Message-ID: <baf75a83c1988abab5135abd10814ae1@smtp.hushmail.com>
Date: Wed, 12 Jun 2013 22:30:49 +0200
From: magnum <john.magnum@...hmail.com>
To: john-users@...ts.openwall.com
Subject: Re: KDE Paste Applet external mode
On 11 Jun, 2013, at 6:22 , Michael Samuel <mik@...net.net> wrote:
> while(i < password_length) {
> 	/* This is rand_r() as used in eglibc */
> 	rand_seed *= 1103515245;
> 	rand_seed += 12345;
This is 3% faster (measured in a 30 second -stdout run):
	rand_seed = rand_seed * 1103515245 + 12345;
> 	rand_result <<= 10;
> 	rand_result ^= (rand_seed >> 16) & 1023;
I tried doing something similar with the above but that was slower.
magnum
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.