- Move source code from `trunk` into program root directory. - Update build files and include paths. - Note: Line endings standardised from `CRLF` > `LF`, so best to view diffs with whitespace changes hidden.
16 lines
198 B
C
16 lines
198 B
C
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
static uint64_t seed;
|
|
|
|
void srand(unsigned s)
|
|
{
|
|
seed = s - 1;
|
|
}
|
|
|
|
int rand(void)
|
|
{
|
|
seed = 6364136223846793005ULL * seed + 1;
|
|
return seed >> 33;
|
|
}
|