Summary: Not constant RAND_MAX
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from 2010-11-24 11:42:07 PST ---
I think the std.c.stdlib.RAND_MAX (core.stdc.stdlib.RAND_MAX) value is
hardcoded in Phobos, in a line of the two "stdlib.d" files:

enum RAND_MAX     = 32767;

If this is true, then it's an error, because in other systems rand() may return
other values. In particular, on an Ubuntu Linux I have seen RAND_MAX needs to
be int.max instead of short.max. So this value has to change according to the

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to