Commit 430115f6 authored by Michael Cook's avatar Michael Cook

taus.c: Make globals static

parent 76767064
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "SIMULATION/TOOLS/sim.h" #include "SIMULATION/TOOLS/sim.h"
unsigned int s0, s1, s2, b; static unsigned int s0, s1, s2;
//---------------------------------------------- //----------------------------------------------
// //
...@@ -33,7 +33,7 @@ unsigned int s0, s1, s2, b; ...@@ -33,7 +33,7 @@ unsigned int s0, s1, s2, b;
unsigned int taus(void) unsigned int taus(void)
{ {
b = (((s0 << 13) ^ s0) >> 19); unsigned int b = (((s0 << 13) ^ s0) >> 19);
s0 = (((s0 & 0xFFFFFFFE) << 12)^ b); s0 = (((s0 & 0xFFFFFFFE) << 12)^ b);
b = (((s1 << 2) ^ s1) >> 25); b = (((s1 << 2) ^ s1) >> 25);
s1 = (((s1 & 0xFFFFFFF8) << 4)^ b); s1 = (((s1 & 0xFFFFFFF8) << 4)^ b);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment