Date: Thu, 21 Sep 2006 09:43:25 -0400 From: Lowell Gilbert <freebsd-stable-local@be-well.ilk.org> To: Krassimir Slavchev <krassi@bulinfo.net> Cc: stable@freebsd.org Subject: Re: Unable to generate random numbers? Message-ID: <44odt9uygy.fsf@be-well.ilk.org> In-Reply-To: <4512942A.1020400@bulinfo.net> (Krassimir Slavchev's message of "Thu, 21 Sep 2006 16:31:22 %2B0300") References: <4512942A.1020400@bulinfo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Krassimir Slavchev <krassi@bulinfo.net> writes: > When I try to generate random bytes using rand() or random() > functions I found that these functions > return constant values!? Show your code (preferably a minimal, compilable, example); chances are that you are not initializing the state properly for use of those functions. Note that those functions are not in any way related to the kernel random(4) device. I suspect this question would be more appropriate on FreeBSD-Questions; the version of FreeBSD you're running isn't really relevant.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44odt9uygy.fsf>