Re: [PATCH 1/2] RNG: Add Pseudo Random Number Generator to kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 16, 2008 at 09:44:56PM +0800, Herbert Xu wrote:
> On Thu, Jul 03, 2008 at 04:21:02PM -0400, Neil Horman wrote:
> >> +	/*
> > +	 * Now update our DT value
> > +	 */
> > +	for (i=DEFAULT_BLK_SZ-1;i>0;i--) {
> > +		ctx->DT[i] = ctx->DT[i-1];
> > +	}
> > +	ctx->DT[0] += 1;
> 
> Is there any reason behind using this algorithm as opposed to
> a simple counter?
> 
No, this was rather a stream of conscious thing, shifting incrementing numbers
through the buffer, I can certainly make it a simple counter.

Neil

> Cheers,
> -- 
> Visit Openswan at http://www.openswan.org/
> Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

-- 
/****************************************************
 * Neil Horman <nhorman@xxxxxxxxxxxxx>
 * Software Engineer, Red Hat
 ****************************************************/
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux