https://en.wikipedia.org/wiki/Xorshift
| 23 | |
| 24 | // https://en.wikipedia.org/wiki/Xorshift |
| 25 | class FastRnd { |
| 26 | public: |
| 27 | inline uint64_t operator()() { |
| 28 | x ^= x << 13; |
| 29 | x ^= x >> 7; |
| 30 | x ^= x << 17; |
| 31 | return x; |
| 32 | } |
| 33 | |
| 34 | private: |
| 35 | uint64_t x = std::chrono::system_clock::now().time_since_epoch().count(); |
| 36 | }; |
| 37 | |
| 38 | namespace skr |
| 39 | { |
nothing calls this directly
no test coverage detected