Implement GNU extension getentropy. This function is used by many programs to acquire entropy without handling the loop of getrandom.
25 lines
441 B
YAML
25 lines
441 B
YAML
header: sys/random.h
|
|
header_template: random.h.def
|
|
macros: []
|
|
types:
|
|
- type_name: ssize_t
|
|
- type_name: size_t
|
|
enums: []
|
|
objects: []
|
|
functions:
|
|
- name: getrandom
|
|
standards:
|
|
- Linux
|
|
return_type: ssize_t
|
|
arguments:
|
|
- type: void *
|
|
- type: size_t
|
|
- type: unsigned int
|
|
- name: getentropy
|
|
standards:
|
|
- GNUExtensions
|
|
return_type: int
|
|
arguments:
|
|
- type: void *
|
|
- type: size_t
|