CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
random_number_generator.h File Reference
#include <stdint.h>
Include dependency graph for random_number_generator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint32_t CRYPTO_generate_random_uint32 (uint32_t more_random_data)
 Generate a pseudo-random number. Not intended for cryptographic use.
void CRYPTO_random_fill_buffer (uint32_t more_random_data, uint8_t buffer[], uint32_t size)
 Fill a buffer with pseudo-random data.

Function Documentation

◆ CRYPTO_generate_random_uint32()

uint32_t CRYPTO_generate_random_uint32 ( uint32_t more_random_data)

Generate a pseudo-random number. Not intended for cryptographic use.

Parameters
more_random_dataA seed input value, like HAL_GetTick().
Returns
A pseudo-random number.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CRYPTO_random_fill_buffer()

void CRYPTO_random_fill_buffer ( uint32_t more_random_data,
uint8_t buffer[],
uint32_t size )

Fill a buffer with pseudo-random data.

Parameters
more_random_dataA seed input value, like HAL_GetTick().
bufferDestination buffer.
sizeSize of the buffer in bytes.
Here is the call graph for this function:
Here is the caller graph for this function: