Merge branch 'master' of https://github.com/pret/pokefirered into text

This commit is contained in:
ProjectRevoTPP committed 2018-10-06 16:45:53 -04:00
commit eb03b1ab0f
5 files changed
+23 -40

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#include "global.h"
#include "random.h"
// The number 1103515245 comes from the example implementation
// of rand and srand in the ISO C standard.
u32 gRngValue;
u16 Random(void)
{
gRngValue = 1103515245 * gRngValue + 24691;
return gRngValue >> 16;
}
void SeedRng(u16 seed)
{
gRngValue = seed;
}