| 34 | { ::srand(static_cast<unsigned int>(time(NULL))); } |
| 35 | |
| 36 | inline T operator()() |
| 37 | { |
| 38 | // Note: Do not use this in production |
| 39 | // Result is in the interval [0,1) |
| 40 | return T(::rand() / T(RAND_MAX + 1.0)); |
| 41 | } |
| 42 | }; |
| 43 | |
| 44 | template <typename T> |
nothing calls this directly
no outgoing calls
no test coverage detected