Commit 2b7273b
crypto: improve invalid arg type message for randomInt()
Use "must be a safe integer" rather than "must be safe integer". I
believe the former is more easily understood/clear.
PR-URL: #35089
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>1 parent bf5a85b commit 2b7273bCopy full SHA for 2b7273b
File tree
Expand file treeCollapse file tree
2 files changed
+6
-6
lines changedOpen diff view settings
Filter options
- lib/internal/crypto
- test/parallel
Expand file treeCollapse file tree
2 files changed
+6
-6
lines changedOpen diff view settings
Collapse file
lib/internal/crypto/random.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/random.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
144 | 144 | |
145 | 145 | |
146 | 146 | |
147 | | - |
| 147 | + |
148 | 148 | |
149 | 149 | |
150 | | - |
| 150 | + |
151 | 151 | |
152 | 152 | |
153 | 153 | |
|
Collapse file
test/parallel/test-crypto-random.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-random.js+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
394 | 394 | |
395 | 395 | |
396 | 396 | |
397 | | - |
| 397 | + |
398 | 398 | |
399 | 399 | |
400 | 400 | |
401 | 401 | |
402 | 402 | |
403 | | - |
| 403 | + |
404 | 404 | |
405 | 405 | |
406 | 406 | |
| ||
441 | 441 | |
442 | 442 | |
443 | 443 | |
444 | | - |
| 444 | + |
445 | 445 | |
446 | 446 | |
447 | 447 | |
| ||
451 | 451 | |
452 | 452 | |
453 | 453 | |
454 | | - |
| 454 | + |
455 | 455 | |
456 | 456 | |
457 | 457 | |
|
0 commit comments