We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 573e71d commit 4934012Copy full SHA for 4934012
src/api.cpp
@@ -64,22 +64,17 @@ using namespace Rcpp;
64
namespace Rcpp {
65
66
namespace internal {
67
- namespace {
68
- unsigned long RNGScopeCounter = 0;
69
- }
70
71
// [[Rcpp::register]]
72
unsigned long enterRNGScope() {
73
GetRNGstate();
74
- RNGScopeCounter++;
75
- return RNGScopeCounter;
+ return 0;
76
}
77
78
79
unsigned long exitRNGScope() {
80
- RNGScopeCounter--;
81
PutRNGstate();
82
83
84
85
0 commit comments