about summary refs log tree commit diff stats
path: root/src/wrapped
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped')
-rw-r--r--src/wrapped/wrappedlibc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index 896dd126..fd3dfe80 100644
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -3675,6 +3675,10 @@ EXPORT char* my_program_invocation_short_name = NULL;
 EXPORT char my___libc_single_threaded = 0;
 
 #ifdef STATICBUILD
+uint32_t arc4random() __attribute__((weak))
+{
+    return get_random32();
+}
 #include "libtools/static_libc.h"
 #endif