From 0d2aa4fba4a2565f3cc937aff23bd69230a32568 Mon Sep 17 00:00:00 2001 From: Fabrizio Bertocci Date: Sun, 21 Mar 2021 08:43:12 -0400 Subject: [PATCH] Added prototype for srandom(). Function is already defined in random.c (together with the other random functions like initstate, setstate, random) but not exposed in the header file --- libc/rand/rand.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libc/rand/rand.h b/libc/rand/rand.h index 573658a58..e56ad4f73 100644 --- a/libc/rand/rand.h +++ b/libc/rand/rand.h @@ -28,6 +28,7 @@ float randf(void); char *initstate(unsigned, char *, size_t); char *setstate(char *); long random(void); +void srandom(unsigned); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */