Subject: Re: random ip_id must be configurable
To: David Laight <>
From: Simon Burge <>
List: tech-net
Date: 09/13/2003 20:40:00
David Laight wrote:

> > Try the 20bit or 32bit generators, they only ever generate 16bit numbers!
> My fault - didn't spot a uint16_t variable in Simon's test program.

"oops". :)

Note also, that the array that stores the results should be as big as
the range of the result, so while this should work for 20 bit numbers
(if you increase it to 1048576 elements), it's a bit unwieldy on most
of our architectures for testing 32bit generators :-)

I just tried the 20 bit generator, and it's down to a 38 call gap
between identical ids after 39364490 calls.  Obviously(?) the greater
range is helping here, but it still has the same basic flaw.

Simon Burge                            <>
NetBSD Support and Service: