[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:53:39 PDT 2023


================
@@ -14,11 +14,18 @@
 #include <stdlib.h>
 
 TEST(LlvmLibcRandTest, UnsetSeed) {
+  static int vals[1000];
----------------
lntue wrote:

why do we need `static` here?

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


More information about the libc-commits mailing list