Skip to content

Commit d2d0d11

Browse files
authored
removed random number generator from _tri.h
1 parent cf0613b commit d2d0d11

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/tri/_tri.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -790,29 +790,3 @@ class TrapezoidMapTriFinder
790790

791791
Node* _tree; // Root node of the trapezoid map search tree. Owned.
792792
};
793-
794-
795-
796-
/* Linear congruential random number generator. Edges in the triangulation are
797-
* randomly shuffled before being added to the trapezoid map. Want the
798-
* shuffling to be identical across different operating systems and the same
799-
* regardless of previous random number use. Would prefer to use a STL or
800-
* Boost random number generator, but support is not consistent across
801-
* different operating systems so implementing own here.
802-
*
803-
* This is not particularly random, but is perfectly adequate for the use here.
804-
* Coefficients taken from Numerical Recipes in C. */
805-
class RandomNumberGenerator
806-
{
807-
public:
808-
RandomNumberGenerator(unsigned long seed);
809-
810-
// Return random integer in the range 0 to max_value-1.
811-
unsigned long operator()(unsigned long max_value);
812-
813-
private:
814-
const unsigned long _m, _a, _c;
815-
unsigned long _seed;
816-
};
817-
818-
#endif

0 commit comments

Comments
 (0)