mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 18:14:03 +00:00
11 lines
257 B
C
11 lines
257 B
C
#include <unistd.h>
|
|
#include <syscall.h>
|
|
#include "syscall.h"
|
|
|
|
|
|
ssize_t getrandom(void *buf, size_t buflen, unsigned flags)
|
|
{
|
|
/// There was cancellable syscall (syscall_cp), but I don't care too.
|
|
return syscall(SYS_getrandom, buf, buflen, flags);
|
|
}
|