Path: utzoo!attcan!uunet!cbmvax!rutgers!mailrus!ames!ubvax!ardent!rap
From: rap@ardent.UUCP (Rob Peck)
Newsgroups: comp.sys.amiga
Subject: Re: RangeRand() in ManxC revisited
Summary: as of 1.2, RangeSeed became public
Keywords: It works, but...
Message-ID: <611@ardent.UUCP>
Date: 26 Sep 88 16:38:11 GMT
References: <5401@ecsvax.uncecs.edu>
Distribution: na
Organization: Dana Computer, Inc., Sunnyvale, CA
Lines: 26

In article <5401@ecsvax.uncecs.edu>, utoddl@ecsvax.uncecs.edu (Todd M. Lewis) writes:
> 
>    The specific problem with RangeRand() is whether the
> seed (RangeSeed) is supposed to be public or not.  I would
> hope so...

> I wanted to be able to seed the function, and the library
> source clearly shows it as not public.  Is this a
> bug?  I can fix it easily because I have the source,
> but I just want to know if that was an oversight in the .lib.

I believe that it is a bug in the Manx source, because as of 1.2,
RangeSeed became a public-accessible function.  I know, cause I was
there and was the person who insisted (OK, REQUESTED) that it be
made accessible to the outside world.  As far as amiga.lib is concerned,
it becomes accessible by declaring 

	extern long RangeSeed;

You could fix your Manx c.lib to make it accessible the same way, then
you'd be compatible with amiga.lib.

Make sure that you send this info to Manx also, so they can fix the source
for the next release.  YOU found the bug. :-)

Rob Peck