Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
7932:6c5e4f24b51e | 7933:c91ec7689424 |
---|---|
34 | 34 |
35 #ifndef SYS_getrandom | 35 #ifndef SYS_getrandom |
36 #error getrandom() requires Linux 3.17 or later | 36 #error getrandom() requires Linux 3.17 or later |
37 #endif | 37 #endif |
38 | 38 |
39 int getrandom(void *buf, size_t len, int flags) { | 39 int getrandom(void *buf, size_t buflen, unsigned int flags) { |
40 return syscall(SYS_getrandom, buf, len, flags); | 40 return syscall(SYS_getrandom, buf, buflen, flags); |
41 } | 41 } |
42 | 42 |
43 #elif defined(WITH_ARC4RANDOM) | 43 #elif defined(WITH_ARC4RANDOM) |
44 #include <stdlib.h> | 44 #include <stdlib.h> |
45 #elif defined(WITH_OPENSSL) | 45 #elif defined(WITH_OPENSSL) |