Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 alpha 4/3/85; site ukecc.UUCP
Path: utzoo!watmath!clyde!cbosgd!ukma!ukecc!edward
From: edward@ukecc.UUCP (Edward C. Bennett)
Newsgroups: net.unix
Subject: Re: Is there a UNIX SVR2 random/srandom equivalent?
Message-ID: <156@ukecc.UUCP>
Date: Thu, 11-Jul-85 09:21:00 EDT
Article-I.D.: ukecc.156
Posted: Thu Jul 11 09:21:00 1985
Date-Received: Sat, 13-Jul-85 08:30:38 EDT
References: <1244@hound.UUCP> <11392@brl-tgr.ARPA> <2399@sun.uucp>
Organization: Univ. of Ky. Engineering Computing Center
Lines: 23

In article <2399@sun.uucp>, guy@sun.uucp (Guy Harris) writes:
> > > Does anyone know what I should use in place of random and srandom?
> > 
> > Lesson # 3.  Using the manual:
> 
> Using the System V manual isn't sufficient; you need the 4.2BSD manual to
> tell you what "random" does in the first place.  The guy may not have a
> 4.2BSD manual, in which case telling him to "use the manual" doesn't help
> much.
> 

	In particular, while BSD and sysV RNGs both return ints, you
must pay attention to what an int is. On a local VAX 11/750 an int is 4
bytes. On our 3B20S an int is 2 bytes.
	Usually this won't make any difference, but every now and then
you'll probably find a program where it does.

-- 
Edward C. Bennett

UUCP: ihnp4!cbosgd!ukma!ukecc!edward

/* A charter member of the Scooter bunch */