generate determinisic and platform-independent data
| 63 | |
| 64 | // generate determinisic and platform-independent data |
| 65 | inline uint64_t hash(uint64_t seed, uint64_t index) { |
| 66 | uint64_t h = (index + seed) * 0xc4ceb9fe1a85ec53ull; |
| 67 | h ^= h >> 33; |
| 68 | h *= 0xff51afd7ed558ccdull; |
| 69 | h ^= h >> 33; |
| 70 | h *= 0xc4ceb9fe1a85ec53ull; |
| 71 | h ^= h >> 33; |
| 72 | return h; |
| 73 | } |
| 74 | |
| 75 | template <typename BuilderType, typename ValueFunc> |
| 76 | Result<std::shared_ptr<Array>> GenerateArray(const std::shared_ptr<DataType>& type, |
no outgoing calls
no test coverage detected