A Usenet article generator [4.3 FIX]
jbuck at epimass.UUCP
jbuck at epimass.UUCP
Fri Feb 20 08:45:12 AEST 1987
In article <4544 at curly.ucla-cs.UCLA.EDU< trainor at CS.UCLA.EDU (Vulture of Light) writes:
<<Well, I compiled and run it, but at the end of producing its amusing
<<output, it constantly gives "Segmentation fault - core dumped". This
<<is on a VAX running 4.3BSD.
<
<Same here. It's just a sloppy pointer thing... The DIFFs follow.
Blush. Well, it passed lint when I posted it.
<Also, the roll(n) function was returning large integers, outside the
<range. Please note that the low-order bits of most rand() functions
<are junk!!!! If you have random(), use it.
I agree. Though in fairness, my system doesn't have random(), and
my documentation mentioned that roll(n) was likely to need change.
--
- Joe Buck {hplabs,ihnp4,sun,ames}!oliveb!epimass!jbuck
Entropic Processing, Inc., Cupertino, California
More information about the Comp.sources.unix
mailing list