"Andrey A. Chernov" writes:
> On Sun, Feb 02, 2003 at 17:30:48 +0000, Mark Murray wrote:
> > 
> > Why not? Arc4 is a) deterministic and b) good for all bits.
> If you mean arc4random() function - not, because it use true randomness,
> if you mean RC4 algorithm, probably yes, but we should compare its
> distribution with our current variant and be sure that speed is
> acceptable. What form RC4 distribution have?

(I have read the whole thread)

I think we need four things.

1) void srandom(int arg) which uses the argument to seed.
2) void srandomdev(void) which uses system entropy to seed.
3) int random(void) which returns a number statistically
   random in all bits.
4) <something else> which returns as many bytes of randomness
   (statistically random in all bits) as the caller asks for.

We have most of this, and RC4 can deliver. RC4's "licence" is
fine. Call it "ArCFour" and there is no problem. The code is
small, fast and repeatable, and meets conditions 1-4 above.

Coding is Junior-high-school level, given the spec.

Mark Murray
iumop ap!sdn w,I idlaH

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to