Using the 15.02 toolchain for RX100 series and stdlib.h, we found that rand() always returns a value < 32768 (implying an int16_t) even though __RAND_MAX is defined in config.h as 0x7fffffff (int32_t).

Is this intended behavior, a bug, or does it require setting a macro value in the project?

Open Source Tools Support answered
    • Hello,

      Thank you for your feedback!

      This is a confirmation message to let you know that we have received your request and that we are looking into it as soon as possible.

      We will be getting back to you soon with our findings.

      Thank you,
      The GNU Tools Support Team