| 391 | |
| 392 | template<typename T> |
| 393 | void uniformDistributionCBRNG(T *out, size_t elements, |
| 394 | af_random_engine_type type, const uintl seed, |
| 395 | uintl counter) { |
| 396 | switch (type) { |
| 397 | case AF_RANDOM_ENGINE_PHILOX_4X32_10: |
| 398 | philoxUniform(out, elements, seed, counter); |
| 399 | break; |
| 400 | case AF_RANDOM_ENGINE_THREEFRY_2X32_16: |
| 401 | threefryUniform(out, elements, seed, counter); |
| 402 | break; |
| 403 | default: |
| 404 | AF_ERROR("Random Engine Type Not Supported", AF_ERR_NOT_SUPPORTED); |
| 405 | } |
| 406 | } |
| 407 | |
| 408 | template<typename T> |
| 409 | void normalDistributionCBRNG(T *out, size_t elements, |
nothing calls this directly
no test coverage detected