Quantcast
Channel: Magnus K Karlsson
Viewing all articles
Browse latest Browse all 526

Random in Linux

$
0
0
  • Syscall available since kernel 3.17
  • Only blocks at initialization if insufficient entropy

$ man 2 getrandom
GETRANDOM(2) Linux Programmer's Manual GETRANDOM(2)

NAME
getrandom - obtain a series of random bytes

SYNOPSIS
#include <linux/random.h>

int getrandom(void *buf, size_t buflen, unsigned int flags);
...

Source Linux kernel random.c


Viewing all articles
Browse latest Browse all 526

Trending Articles