[GRASS-dev] r.random still broken on Mac
William Kyngesburye
woklist at kyngchaos.com
Thu Sep 28 14:41:07 EDT 2006
I just did a quick test - removed __APPLE__ from r.random, so it uses
the extern lrand48. I now get a random distribution.
On Sep 28, 2006, at 12:58 PM, William Kyngesburye wrote:
> __APPLE__ is still around. I don't think it'll go away. Handy
> little trick I found somewhere:
>
> touch foo.h; cpp -dM foo.h
>
> What was the problem before? is *rand48 broken on OS X? I see in
> my config.h that HAVE_DRAND48 is defined. Or that having drand48
> doesn't mean there is lrand48?
>
> If it's broken, I noticed that r.mapcalc's xrand.c also uses
> lrand48, but it still tests for HAVE_DRAND48 instead of __APPLE__.
> And it uses a different define for when HAVE_DRAND48 is not defined.
>
> On Sep 28, 2006, at 12:20 PM, Glynn Clements wrote:
>
-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/
All generalizations are dangerous, even this one.
More information about the grass-dev
mailing list