[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:57:48 PDT 2023
================
@@ -17,6 +17,6 @@
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
-#define RAND_MAX 32767
+#define RAND_MAX 2147483647
----------------
michaelrj-google wrote:
given that the implementation shifts right by 32, I think it's likely safe to have this be written out.
https://github.com/llvm/llvm-project/pull/66131
More information about the libc-commits
mailing list