| 37 | }; |
| 38 | |
| 39 | void GenRandomUInt64(int N, std::vector<uint64>* vec) { |
| 40 | random::PhiloxRandom philox(288, 19); |
| 41 | random::SimplePhilox rnd(&philox); |
| 42 | vec->resize(N); |
| 43 | for (int i = 0; i < N; ++i) { |
| 44 | (*vec)[i] = rnd.Rand64(); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | void GenRandomFloat(int N, std::vector<float>* vec) { |
| 49 | random::PhiloxRandom philox(392, 44); |