Subject: Re: ElectricFence barfs on mmap
To: Volker Stolz <stolz@hyperion.informatik.rwth-aachen.de>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: port-sparc64
Date: 11/07/2001 13:03:23
On Wed, 7 Nov 2001, Volker Stolz wrote:
> On a second thought, using
>
> size_t size = (size_t)(lrand48() % (LARGEST_BUFFER + 1));
>
> instead of
>
> size_t size = (size_t)(drand48() * (LARGEST_BUFFER + 1));
>
> would have saved all the trouble as lrand48() is guaranteed to
> return a result in the range of 0-2^31 in the lower bits and
> clean upper 32 bits.
Um, when you're done optimizing the patches please stuff them into a PR so
wen can add them to pkgsrc. TIA!
- Hubert
--
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/