OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: rpc xid randomness

From: Jun-ichiro itojun Hagino (itojunitojun.org)
Date: Mon Sep 08 2003 - 16:37:28 CDT


> On Mon, Sep 08, 2003 at 07:50:58PM +0900, Jun-ichiro itojun Hagino wrote:
> > to summarize,
> > - the currently-committed code is not good. it is not resistant to
> > number reuse/duplication.
> > - sequential number with time.tv_sec initialization is resistant to
> > number reuse/duplication, if we don't set date(1).
> > - niels' generator is resistant to number reuse/duplcation, and probably
> > there's no chance for duplication on reboot (due to the use of random
> > number as initialization)
> I just want to see some kind of benchmark, like lat_rpc from lmbench.
> Or maybe just spray(8).
> If it doesn't introduce too much overhead, it's fine with me.

        with 65536 iteration:

itojun[starfruit:/tmp] ./a.out
begin: 1063056924.00613695

end: 1063056925.00897448
diff: 1.00283753

        machine spec and source code is attached.

itojun


  • Text/Plain attachment: 1

  • Text/Plain attachment: hoge.c