ocarina/core/random.cpp

22 lines
274 B
C++

/**
* Copyright 2014 (c) Anna Schumaker
*/
#ifdef CONFIG_TEST
#include <core/random.h>
static unsigned int _random_value = 0;
void _seed_random(unsigned int n)
{
_random_value = n;
}
unsigned int _pick_random()
{
return ++_random_value;
}
#endif /* CONFIG_TEST */