Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Oct 1, 2024
1 parent 2c82399 commit 2146cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shuffle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function nextBytes(numBytes: number): Buffer {
try {
return randomBytes(numBytes);
} catch (ex) {
if(ex instanceof Error) {
if (ex instanceof Error) {
throw new Error(`Insufficient entropy: ${ex.message}`);
} else {
throw new Error('Insufficient entropy: Unknown error');
Expand Down

0 comments on commit 2146cb3

Please sign in to comment.