https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 100ab74d14b12a0dec453edbdfe89b3e08c630fb authored by Daniel Fort on 26 November 2016, 20:18:41 UTC
Close branch raw_video_10bit_12bit_EOSM_pixels.
Tip revision: 100ab74
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