Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
rand32.h File Reference

Random number generator header file. More...

#include <zephyr/types.h>
#include <stddef.h>
#include <kernel.h>
#include <syscalls/rand32.h>

Go to the source code of this file.

Functions

uint32_t sys_rand32_get (void)
 Return a 32-bit random value that should pass general randomness tests. More...
 
void sys_rand_get (void *dst, size_t len)
 Fill the destination buffer with random data values that should pass general randomness tests. More...
 
int sys_csrand_get (void *dst, size_t len)
 Fill the destination buffer with cryptographically secure random data values. More...
 

Detailed Description

Random number generator header file.

This header file declares prototypes for the kernel's random number generator APIs.

Typically, a platform enables the appropriate source for the random number generation based on the hardware platform's capabilities or (for testing purposes only) enables the TEST_RANDOM_GENERATOR configuration option.