File: random.h

package info (click to toggle)
dietlibc 0.34~cvs20160606-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,388 kB
  • sloc: ansic: 71,664; asm: 13,008; cpp: 1,860; makefile: 804; sh: 292; perl: 62
file content (27 lines) | stat: -rw-r--r-- 429 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * include/linux/random.h
 *
 * Include file for the random number generator.
 */

#ifndef _LINUX_RANDOM_H
#define _LINUX_RANDOM_H

#include <sys/cdefs.h>

__BEGIN_DECLS

#ifndef GRND_NONBLOCK
enum {
  GRND_NONBLOCK=1,
#define GRND_NONBLOCK GRND_NONBLOCK
  GRND_RANDOM=2
#define GRND_RANDOM GRND_RANDOM
};

int getrandom(void* buf, size_t buflen, unsigned int flags) __THROW;
#endif

__END_DECLS

#endif /* _LINUX_RANDOM_H */