MCPcopy Create free account
hub / github.com/alibaba/zvec / RandomDimension

Function RandomDimension

tests/core/algorithm/flat/flat_builder_test.cc:39–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37using namespace std;
38
39static inline size_t RandomDimension() {
40 std::mt19937 gen((std::random_device())());
41 return (std::uniform_int_distribution<size_t>(1, 129))(gen);
42}
43
44static size_t DIMENSION = RandomDimension();
45class FlatBuilderTest : public testing::Test {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected