MCPcopy Create free account
hub / github.com/dblalock/bolt / aligned_random

Function aligned_random

cpp/test/testing_utils/testing_utils.hpp:181–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180template<class data_t>
181static inline data_t* aligned_random(int64_t len) {
182 data_t* ptr = aligned_alloc<data_t>(len);
183 rand_inplace(ptr, len);
184 return ptr;
185}
186
187#endif

Callers

nothing calls this directly

Calls 1

rand_inplaceFunction · 0.85

Tested by

no test coverage detected