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

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Tue Sep 12 12:52:19 PDT 2023


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

I wasn't sure if that would always be available when this header is included.

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


More information about the libc-commits mailing list