diff options
| author | Christopher Aue <[email protected]> | 2017-08-09 21:42:42 +0200 |
|---|---|---|
| committer | Christopher Aue <[email protected]> | 2017-08-09 21:56:27 +0200 |
| commit | 2fadddcd20a16afe0e710d07288e106993a43a07 (patch) | |
| tree | a2b928be7c8dd7103aded1df6ce547ad18aef54e /mrbgems/mruby-random/src | |
| parent | 24c345fe5c68a3f0cd4d16e84c8bf6ed93cedce8 (diff) | |
| download | mruby-2fadddcd20a16afe0e710d07288e106993a43a07.tar.gz mruby-2fadddcd20a16afe0e710d07288e106993a43a07.zip | |
Replaced tabs with spaces
Diffstat (limited to 'mrbgems/mruby-random/src')
| -rw-r--r-- | mrbgems/mruby-random/src/mt19937ar.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mrbgems/mruby-random/src/mt19937ar.c b/mrbgems/mruby-random/src/mt19937ar.c index bee06b574..405bd5c20 100644 --- a/mrbgems/mruby-random/src/mt19937ar.c +++ b/mrbgems/mruby-random/src/mt19937ar.c @@ -52,8 +52,7 @@ void mrb_random_init_genrand(mt_state *t, unsigned long s) { t->mt[0]= s & 0xffffffffUL; for (t->mti=1; t->mti<N; t->mti++) { - t->mt[t->mti] = - (1812433253UL * (t->mt[t->mti-1] ^ (t->mt[t->mti-1] >> 30)) + t->mti); + t->mt[t->mti] = (1812433253UL * (t->mt[t->mti-1] ^ (t->mt[t->mti-1] >> 30)) + t->mti); t->mt[t->mti] &= 0xffffffffUL; } } @@ -111,8 +110,7 @@ void init_genrand(unsigned long s) { mt[0]= s & 0xffffffffUL; for (mti=1; mti<N; mti++) { - mt[mti] = - (1812433253UL * (mt[mti-1] ^ (mt[mti-1] >> 30)) + mti); + mt[mti] = (1812433253UL * (mt[mti-1] ^ (mt[mti-1] >> 30)) + mti); /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */ /* In the previous versions, MSBs of the seed affect */ /* only MSBs of the array mt[]. */ |
