On 08/29/2013 09:35 AM, Jason Helfman wrote:

>>>
>> stdlib.h:#define        RAND_MAX        0x7fffffff

Good.

>>
>> -jgh
>>
> 
> And on our current head release (10) it is this:
> 
> #define RAND_MAX        0x7ffffffd

Huh?  Why is this not 2**n-1?  That violates assumptions we have made,
and is WHY your compile failed.  It has nothing to do with clang vs. gcc
(both compilers would fail), it has to do with your changed system
header resulting in violating assumptions that hold in ALL OTHER
IMPLEMENTATIONS, that random numbers are evenly distributed within a
range of a power of 2.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to