Commit 420feb4
crypto: remove INT_MAX restriction in randomBytes
This restriction was due to an implementation detail in CSPRNG(). Now
that CSPRNG() properly handles lengths exceeding INT_MAX, remove this
artificial restriction.
Refs: #47515
PR-URL: #47559
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>1 parent 7f7735c commit 420feb4Copy full SHA for 420feb4
File tree
Expand file treeCollapse file tree
1 file changed
+0
-6
lines changedOpen diff view settings
Filter options
- src/crypto
Expand file treeCollapse file tree
1 file changed
+0
-6
lines changedOpen diff view settings
Collapse file
src/crypto/crypto_random.cc
Copy file name to clipboardExpand all lines: src/crypto/crypto_random.cc-6Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
42 | | - |
43 | 42 | |
44 | 43 | |
45 | 44 | |
| ||
51 | 50 | |
52 | 51 | |
53 | 52 | |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | 53 | |
60 | 54 | |
61 | 55 | |
|
0 commit comments