[libc-commits] [libc] [libc] Improve the implementation of the rand() function (PR #66131)

via libc-commits libc-commits at lists.llvm.org
Tue Sep 12 12:50:59 PDT 2023


================
@@ -17,6 +17,6 @@
 #define EXIT_SUCCESS 0
 #define EXIT_FAILURE 1
 
-#define RAND_MAX 32767
+#define RAND_MAX 2147483647
----------------
lntue wrote:

Shall we define it as INT_MAX instead?

https://github.com/llvm/llvm-project/pull/66131


More information about the libc-commits mailing list