haiku/headers/private/system/random_defs.h
Augustin Cavalier 6bde05aebd libs/bsd: Implement getentropy(2).
With generic_syscall to avoid using a FD.

Change-Id: Id1702118bb673f06a861e4f0ad3401ce3d45cbd0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/31
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-29 19:42:27 +00:00

23 lines
365 B
C

/*
* Copyright 2023, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _KERNEL_RANDOM_DEFS_H
#define _KERNEL_RANDOM_DEFS_H
#include <stddef.h>
#define RANDOM_SYSCALLS "random"
#define RANDOM_GET_ENTROPY 1
struct random_get_entropy_args {
void* buffer;
size_t length;
};
#endif /* _KERNEL_RANDOM_DEFS_H */