| 799 | } |
| 800 | |
| 801 | void UtestShellPointerArray::shuffle(size_t seed) |
| 802 | { |
| 803 | if (count_ == 0) return; |
| 804 | |
| 805 | PlatformSpecificSrand((unsigned int) seed); |
| 806 | |
| 807 | for (size_t i = count_ - 1; i >= 1; --i) |
| 808 | { |
| 809 | if (count_ == 0) return; |
| 810 | |
| 811 | const size_t j = ((size_t)PlatformSpecificRand()) % (i + 1); // distribution biased by modulo, but good enough for shuffling |
| 812 | swap(i, j); |
| 813 | } |
| 814 | relinkTestsInOrder(); |
| 815 | } |
| 816 | |
| 817 | void UtestShellPointerArray::reverse() |
| 818 | { |
no outgoing calls
no test coverage detected