Skip to content

Commit 0fc0085

Browse files
mertcanaltinpanva
andauthored
Update src/crypto/crypto_random.cc
Co-authored-by: Filip Skokan <panva.ip@gmail.com>
1 parent 6e53cc3 commit 0fc0085

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/crypto/crypto_random.cc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ static void RandomFillSync(const FunctionCallbackInfo<Value>& args) {
227227
CHECK_GE(byte_offset + size, byte_offset); // Overflow check.
228228
CHECK_LE(byte_offset + size, in.size()); // Bounds check.
229229

230+
env->PrintSyncTrace();
231+
ClearErrorOnReturn clear_error_on_return;
230232
if (ncrypto::CSPRNG(in.data() + byte_offset, size)) return;
231233

232234
CryptoErrorStore errors;

0 commit comments

Comments
 (0)