Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Feb 2003 18:22:37 -0800 (PST)
From:      Paul Herman <pherman@frenchfries.net>
To:        Anthony Schneider <anthony@x-anthony.com>
Cc:        FreeBSD Hackers <hackers@FreeBSD.ORG>
Subject:   Re: arc4random() range
Message-ID:  <20030218180736.L240-100000@mammoth.eat.frenchfries.net>
In-Reply-To: <20030219013247.GA10910@x-anthony.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 18 Feb 2003, Anthony Schneider wrote:

> an issue of arc4random return u_int32_t and rand*
> returning int (ie unsigned vs signed)?

Nope, casting arc4random() to int or casting random() to unsigned
int won't solve the problem.  The problem still is that
arc4random()'s range is twice that of it's friends'.

-Paul.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030218180736.L240-100000>