Skip to content

Commit d9cd6ce

Browse files
committed
Update boot.cpp
1 parent 8cf26ce commit d9cd6ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/boot.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void mexFunction (int nlhs, mxArray* plhs[],
154154

155155
// Declare variables
156156
mwSize dims[2] = {static_cast<mwSize>(n), static_cast<mwSize>(nboot)};
157-
plhs[0] = mxCreateNumericArray(2, dims,
157+
plhs[0] = mxCreateNumericArray (2, dims,
158158
mxDOUBLE_CLASS,
159159
mxREAL); // Prepare array for bootstrap sample indices
160160
long long int N = n * nboot; // Total counts of all sample indices
@@ -201,7 +201,7 @@ void mexFunction (int nlhs, mxArray* plhs[],
201201
double *ptr = (double *) mxGetData(plhs[0]);
202202

203203
// Initialize pseudo-random number generator (Mersenne Twister 19937)
204-
mt19937 rng (rand());
204+
mt19937 rng (rand ());
205205
uniform_int_distribution<int> distr (0, n - 1);
206206

207207
// Perform balanced sampling

0 commit comments

Comments
 (0)