Commit 85c759e
Fix FIPS-safe random string generation in dataset generator
Chunk large RandomStringUtils calls to stay under the BC FIPS DRBG
per-request limit (262144 bits / 32768 bytes), which was causing
generate tests to fail under the FIPS profile.
- add random-ascii-string helper in cli/generate.clj and use it in add-blob
- add alphabetic-string helper in random.clj and route random-string/
random-string-alpha through it
- use StringBuilder-based chunk assembly to reduce intermediate allocations
- add local type hints on interop targets to avoid reflection noise
Co-authored-by: GitHub Copilot <copilot@users.noreply.github.com>
Signed-off-by: Corporate Gadfly <haroon.rafique@gmail.com>1 parent 8046580 commit 85c759e
2 files changed
Lines changed: 51 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
| |||
335 | 337 | | |
336 | 338 | | |
337 | 339 | | |
338 | | - | |
| 340 | + | |
339 | 341 | | |
340 | 342 | | |
341 | 343 | | |
| |||
461 | 463 | | |
462 | 464 | | |
463 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
464 | 489 | | |
465 | 490 | | |
466 | 491 | | |
| |||
480 | 505 | | |
481 | 506 | | |
482 | 507 | | |
483 | | - | |
| 508 | + | |
484 | 509 | | |
485 | 510 | | |
486 | 511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
13 | 35 | | |
14 | 36 | | |
15 | 37 | | |
16 | 38 | | |
17 | | - | |
| 39 | + | |
18 | 40 | | |
19 | 41 | | |
20 | 42 | | |
21 | 43 | | |
22 | 44 | | |
23 | | - | |
| 45 | + | |
24 | 46 | | |
25 | 47 | | |
26 | 48 | | |
| |||
0 commit comments