MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / generate_random_inputs

Function generate_random_inputs

test_conformance/basic/test_readimage.cpp:174–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172)";
173
174template <typename T> void generate_random_inputs(std::vector<T> &v)
175{
176 RandomSeed seed(gRandomSeed);
177
178 auto random_generator = [&seed]() {
179 return static_cast<T>(genrand_int32(seed));
180 };
181
182 std::generate(v.begin(), v.end(), random_generator);
183}
184
185template <> void generate_random_inputs<float>(std::vector<float> &v)
186{

Callers 1

test_readimageFunction · 0.70

Calls 3

genrand_int32Function · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected