mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
util.crand: Change argumen names to match some man page
This commit is contained in:
parent
dfb72918f3
commit
7dba99875f
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@
|
||||||
#error getrandom() requires Linux 3.17 or later
|
#error getrandom() requires Linux 3.17 or later
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int getrandom(void *buf, size_t len, int flags) {
|
int getrandom(void *buf, size_t buflen, unsigned int flags) {
|
||||||
return syscall(SYS_getrandom, buf, len, flags);
|
return syscall(SYS_getrandom, buf, buflen, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(WITH_ARC4RANDOM)
|
#elif defined(WITH_ARC4RANDOM)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue