I'm porting the test for the lib.alg.random_shuffle algorithm and I have
a question about the current test implementation.

There is the special test case for the built-in random number generator
which does the following:
some test array is defined and initialized with numbers, when the
random_shuffle algorithm is called for this array, and the result is
compared with another predefined array (which was initialized with the
same numbers and "shuffled" manually). The results of the random_shuffle
of the given array depends on the implementation of the random number
generator used by random_shuffle,
and this results in that the test case may be passed for the 1025-th
invocation of the random_shuffle algorithm only. 

The question is: is it necessary to keep this test case in the ported
test version?


Thanks,
Anton Pevtsov

Reply via email to