Title / Description
Code --- ./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; };
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code