Skip to content

Commit

Permalink
Add 'inline' to get_seed_from_r() (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
rstub authored Apr 25, 2024
1 parent 128a3cd commit 2a18894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/include/dqrng_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ inline void random_64bit_wrapper<pcg64>::set_stream(result_type stream) {
gen.set_stream(pcg_extras::pcg128_t(state[1]/2) + stream);
}

uint64_t get_seed_from_r() {
inline uint64_t get_seed_from_r() {
Rcpp::RNGScope rngScope;
Rcpp::IntegerVector seed(2, dqrng::R_random_int);
return dqrng::convert_seed<uint64_t>(seed);
Expand Down

0 comments on commit 2a18894

Please sign in to comment.