| 25 | #include "paddle/phi/core/enforce.h" |
| 26 | |
| 27 | static uint64_t GetRandomSeed() { |
| 28 | std::random_device rd; |
| 29 | // double has 53 bit significant, so limit uint64 to 53 bits |
| 30 | return ((((uint64_t)rd()) << 32) + rd()) & 0x1FFFFFFFFFFFFF; |
| 31 | } |
| 32 | |
| 33 | namespace phi { |
| 34 |
no outgoing calls
no test coverage detected