[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Weird irreproducible error
- From: David Given <dg@...>
- Date: Mon, 08 Oct 2007 14:05:02 +0100
David Jones wrote:
[...]
b) because hash tables use address-based hashing (for keys that are
themselves tables), so the order of pairs() depends on where in memory
the tables (that are keys) got allocated. That can change either on a
whim or, perhaps more likely, when DLLs have been mapped into different
places in the address space (thus meaning the holes left for memory
allocation are different).
...not to mention operating systems like OpenBSD which do their damndest
to make sure you never get the same address twice, for security reasons.
Yes, malloc() really does end up invoking the random number generator.
--
David Given
dg@cowlark.com