https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: bca10764dd691a38adf483ad8dc9a0fe773b56a6 authored by Giovanni C on 06 February 2014, 20:46:14 UTC
Close branch separate-vectorscope
Tip revision: bca1076
rand.h
#ifndef __RAND_H__
#define __RAND_H__


/**
 * @brief basic random function that fills given number of 32 bit words
 * @param buffer pointer to a uint32_t based buffer
 * @param length number of uint32_t words to fill with random numbers
 */
void rand_fill(uint32_t *buffer, uint32_t length);

/**
 * @brief seed the RNG with given number
 * @param seed number used to initialize/update RNG
 */
void rand_seed(uint32_t seed);


#endif
back to top