Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
rand32.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2013-2014 Wind River Systems, Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
20#ifndef ZEPHYR_INCLUDE_RANDOM_RAND32_H_
21#define ZEPHYR_INCLUDE_RANDOM_RAND32_H_
22
23#include <zephyr/types.h>
24#include <stddef.h>
25#include <kernel.h>
26
34#ifdef __cplusplus
35extern "C" {
36#endif
37
47__syscall uint32_t sys_rand32_get(void);
48
60__syscall void sys_rand_get(void *dst, size_t len);
61
75__syscall int sys_csrand_get(void *dst, size_t len);
76
77#ifdef __cplusplus
78}
79#endif
80
85#include <syscalls/rand32.h>
86#endif /* ZEPHYR_INCLUDE_RANDOM_RAND32_H_ */
int sys_csrand_get(void *dst, size_t len)
Fill the destination buffer with cryptographically secure random data values.
uint32_t sys_rand32_get(void)
Return a 32-bit random value that should pass general randomness tests.
void sys_rand_get(void *dst, size_t len)
Fill the destination buffer with random data values that should pass general randomness tests.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60