Billy Robert O'Neal III ccf7f2842a Fix random_shuffle narrowing warnings
Catch passes an RNG which accepts int to random_shuffle. Inside
random_shuffle, the STL tries to call that RNG with the difference_type
of the user provided iterators. For std::vector, this is ptrdiff_t,
which on amd64 builds is wider than int. This triggers a narrowing
warning because the 64 bit difference is being truncated to 32 bits.

Note that this RNG implementation still does not produce a correctly
uniformly shuffled result -- it's currently asserting that std::rand
can produce 1000000 which is false -- but I don't know enough about
how much repeatable shuffles are necessary here, so I'm leaving that
alone for now.
2016-10-14 14:06:45 -07:00
..
2014-12-11 23:48:11 +00:00
2014-03-17 18:40:58 +00:00
2014-05-20 18:49:28 +01:00
2014-05-19 18:57:14 +01:00
2015-07-01 07:33:27 +01:00
2015-07-28 18:55:11 +01:00
2016-03-14 19:13:34 +00:00
2015-12-04 10:19:08 +00:00
2014-06-30 07:33:17 +01:00
2014-06-30 07:33:17 +01:00
2014-03-17 18:40:58 +00:00
2015-07-01 07:33:27 +01:00
2016-09-27 10:46:22 +01:00
2016-08-24 09:38:24 -05:00