MCPcopy Create free account
hub / github.com/apache/arrow / MakeSeedGenerator

Function MakeSeedGenerator

cpp/src/arrow/compute/kernels/scalar_random.cc:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53using RandomState = OptionsWrapper<RandomOptions>;
54
55random::pcg64_oneseq MakeSeedGenerator() {
56 arrow_vendored::pcg_extras::seed_seq_from<std::random_device> seed_source;
57 random::pcg64_oneseq seed_gen(seed_source);
58 return seed_gen;
59}
60
61Status ExecRandom(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) {
62 static random::pcg64_oneseq seed_gen = MakeSeedGenerator();

Callers 1

ExecRandomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected