summaryrefslogtreecommitdiff
path: root/set3/task21.c
diff options
context:
space:
mode:
Diffstat (limited to 'set3/task21.c')
-rw-r--r--set3/task21.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/set3/task21.c b/set3/task21.c
index e8a48d1..ac19a1e 100644
--- a/set3/task21.c
+++ b/set3/task21.c
@@ -6,9 +6,10 @@
#define BLOCKSIZE 16
int main()
{
+ struct mt_19937_state mt_state;
unsigned int seed = 111;
int i;
- mt_19937_seed(seed);
+ mt_19937_seed(seed, &mt_state);
for(i=0;i<10;i++)
- printf("%u\n", mt_19937());
+ printf("%u\n", mt_19937(&mt_state));
}