Diff

util-src/crand.c @ 7933:c91ec7689424

util.crand: Change argumen names to match some man page
author Kim Alvefur <zash@zash.se>
date Thu, 02 Mar 2017 00:15:04 +0100
parent 7932:6c5e4f24b51e
child 7934:485b9e66fedf
line wrap: on
line diff
--- a/util-src/crand.c	Wed Mar 01 22:39:01 2017 +0100
+++ b/util-src/crand.c	Thu Mar 02 00:15:04 2017 +0100
@@ -36,8 +36,8 @@
 #error getrandom() requires Linux 3.17 or later
 #endif
 
-int getrandom(void *buf, size_t len, int flags) {
-	return syscall(SYS_getrandom, buf, len, flags);
+int getrandom(void *buf, size_t buflen, unsigned int flags) {
+	return syscall(SYS_getrandom, buf, buflen, flags);
 }
 
 #elif defined(WITH_ARC4RANDOM)