diff
Diff
code posted
created at 04 May 10:47
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
--- ./lib/matplotlib/tri/_tri.cpp 2013-10-10 21:42:48.000000000 +0900 +++ ./lib/matplotlib/tri/_tri.cpp 2014-01-10 13:29:25.837581500 +0900 @@ -2177,13 +2177,13 @@ RandomNumberGenerator::RandomNumberGenerator(unsigned long seed) - : _M(21870), _A(1291), _C(4621), _seed(seed % _M) + : _M(21870), _A(1291), _Co(4621), _seed(seed % _M) {} unsigned long RandomNumberGenerator::operator()(unsigned long max_value) { - _seed = (_seed*_A + _C) % _M; + _seed = (_seed*_A + _Co) % _M; return (_seed*max_value) / _M; } --- ./lib/matplotlib/tri/_tri.h 2013-10-10 21:42:48.000000000 +0900 +++ ./lib/matplotlib/tri/_tri.h 2014-01-10 13:25:46.188018200 +0900 @@ -818,7 +818,7 @@ unsigned long operator()(unsigned long max_value); private: - const unsigned long _M, _A, _C; + const unsigned long _M, _A, _Co; unsigned long _seed; }; |
896 Bytes in 3 ms with coderay