Skip to content

Commit 4934012

Browse files
committed
remove RNG scope counter (it's unused)
1 parent 573e71d commit 4934012

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/api.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,17 @@ using namespace Rcpp;
6464
namespace Rcpp {
6565

6666
namespace internal {
67-
namespace {
68-
unsigned long RNGScopeCounter = 0;
69-
}
7067

7168
// [[Rcpp::register]]
7269
unsigned long enterRNGScope() {
7370
GetRNGstate();
74-
RNGScopeCounter++;
75-
return RNGScopeCounter;
71+
return 0;
7672
}
7773

7874
// [[Rcpp::register]]
7975
unsigned long exitRNGScope() {
80-
RNGScopeCounter--;
8176
PutRNGstate();
82-
return RNGScopeCounter;
77+
return 0;
8378
}
8479

8580
// [[Rcpp::register]]

0 commit comments

Comments
 (0)