From 723bb6544cf7a4bf8926e3ee3b07024250d8b68b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 21 Jun 2025 02:21:15 -0400 Subject: usr: libc: Add rand() and srand() Signed-off-by: Ian Moffett --- lib/libc/include/stdlib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/libc/include') diff --git a/lib/libc/include/stdlib.h b/lib/libc/include/stdlib.h index 054bdca..b79397d 100644 --- a/lib/libc/include/stdlib.h +++ b/lib/libc/include/stdlib.h @@ -85,6 +85,9 @@ __dead void _Exit(int status); #endif #endif +void srand(unsigned int r); +int rand(void); + __END_DECLS #endif /* !_STDLIB_H */ -- cgit v1.2.3