Skip to content

Instantly share code, notes, and snippets.

@iray-tno
Created May 4, 2014 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iray-tno/3e3121cc26eb38e06530 to your computer and use it in GitHub Desktop.
Save iray-tno/3e3121cc26eb38e06530 to your computer and use it in GitHub Desktop.
--- ./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;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment