ad_astra/space_game/SpaceGame/src/util/random/random.h
2020-06-07 16:00:15 +02:00

14 lines
266 B
C

#ifndef RANDOM_H
#define RANDOM_H
#include <avr/io.h>
/// Mustn't be zero, should be lower than 65535
#define SEED 42
/// Simple LFSR with some improvements to enhance distribution
/// while maintaining short execution time
uint8_t getRandomNumber();
#endif