2015-09-09 09:00:17 -04:00
|
|
|
/*
|
2014-05-18 10:10:04 -04:00
|
|
|
* Copyright 2014 (c) Anna Schumaker
|
|
|
|
*/
|
2015-08-27 13:17:30 -04:00
|
|
|
#ifdef CONFIG_TESTING
|
2014-05-18 10:10:04 -04:00
|
|
|
|
2014-06-05 10:19:22 -04:00
|
|
|
#include <core/random.h>
|
2014-05-18 10:10:04 -04:00
|
|
|
|
|
|
|
static unsigned int _random_value = 0;
|
|
|
|
|
|
|
|
|
|
|
|
void _seed_random(unsigned int n)
|
|
|
|
{
|
|
|
|
_random_value = n;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int _pick_random()
|
|
|
|
{
|
|
|
|
return ++_random_value;
|
|
|
|
}
|
|
|
|
|
2015-08-27 13:17:30 -04:00
|
|
|
#endif /* CONFIG_TESTING */
|