Re: BSD's random.c dicey on the Alpha

2000-11-23 Thread Mark Murray

  Anyone want to have a look at this?  It's from the GNU awk maintainer.
 
 Without knowing which random.c it was, it's hard to judge :-) Also not
 knowing what the intended use is, it's hard to recommend something.

I'd guess src/lib/libc/stdlib/random.c

I'll bury it in my TODO.

M
--
Mark Murray
Join the anti-SPAM movement: http://www.cauce.org


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



BSD's random.c dicey on the Alpha

2000-11-22 Thread Sheldon Hearn


Hi folks,

Anyone want to have a look at this?  It's from the GNU awk maintainer.

Ciao,
Sheldon.

--- Forwarded Message

From: Aharon Robbins [EMAIL PROTECTED]
Date: Wed, 22 Nov 2000 11:59:10 +0200
Message-ID: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: BSD random for Alpha?
Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]

Hi.  I've switched to the new random.c you sent me for gawk.  My
Linux/Alpha Guru reports that the code in it assumes that sizeof(long)
is always 4, and one particular test doesn't "look" very random on
the Alpha.

My question is, is there a better version of random that can deal
with both 32 and 64 bit systems in the same source code?  Would
the NetBSD people maybe have such a thing?

Thanks,

Arnold
- --
Aharon (Arnold) Robbins --- Pioneer Consulting Ltd. [EMAIL PROTECTED]
P.O. Box 354Home Phone: +972  8 979-0381Fax: +1 603 761-6761
Nof Ayalon  Cell Phone: +972 51  297-545(See www.efax.com)
D.N. Shimshon 99785 Laundry increases exponentially in the
ISRAEL  number of children. -- Miriam Robbins



--- End of Forwarded Message



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



Re: BSD's random.c dicey on the Alpha

2000-11-22 Thread Kris Kennaway

On Wed, Nov 22, 2000 at 03:18:27PM +0200, Sheldon Hearn wrote:
 
 Hi folks,
 
 Anyone want to have a look at this?  It's from the GNU awk maintainer.

Without knowing which random.c it was, it's hard to judge :-) Also not
knowing what the intended use is, it's hard to recommend something.

Kris

 PGP signature