# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1650717463 -7200
# Node ID 80f3123053e269771961fae8ed51dd6c4b5274bb
# Parent  2b3adaa6d38e672f87df142c38bf4228c11efe96
util.crand: Reduce scope here too

Same as previous commit

diff -r 2b3adaa6d38e -r 80f3123053e2 util-src/crand.c
--- a/util-src/crand.c	Sat Apr 23 14:29:43 2022 +0200
+++ b/util-src/crand.c	Sat Apr 23 14:37:43 2022 +0200
@@ -45,7 +45,7 @@
 #endif
 
 /* This wasn't present before glibc 2.25 */
-int getrandom(void *buf, size_t buflen, unsigned int flags) {
+static int getrandom(void *buf, size_t buflen, unsigned int flags) {
 	return syscall(SYS_getrandom, buf, buflen, flags);
 }
 #else
@@ -66,7 +66,7 @@
 #define SMALLBUFSIZ 32
 #endif
 
-int Lrandom(lua_State *L) {
+static int Lrandom(lua_State *L) {
 	char smallbuf[SMALLBUFSIZ];
 	char *buf = &smallbuf[0];
 	const lua_Integer l = luaL_checkinteger(L, 1);