MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / selectRng

Method selectRng

cpp/4_CUDA_Libraries/randomFog/rng.cpp:205–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void RNG::selectRng(RNG::RngType type)
206{
207 switch (type) {
208 case Quasi:
209 m_pCurrent = &m_qrng;
210 break;
211
212 case ScrambledQuasi:
213 m_pCurrent = &m_sqrng;
214 break;
215
216 case Pseudo:
217 default:
218 m_pCurrent = &m_prng;
219 break;
220 }
221
222 setBatchSize();
223}
224
225void RNG::resetSeed(void)
226{

Callers 1

keyboardFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected