Commit 6c0eace
committed
random: access input_pool_data directly rather than through pointer
This gets rid of another abstraction we no longer need. It would be nice
if we could instead make pool an array rather than a pointer, but the
latent entropy plugin won't be able to do its magic in that case. So
instead we put all accesses to the input pool's actual data through the
input_pool_data array directly.
Reviewed-by: Dominik Brodowski <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>1 parent 18263c4 commit 6c0eace
1 file changed
+8
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | 499 | | |
504 | 500 | | |
505 | 501 | | |
506 | 502 | | |
507 | 503 | | |
508 | 504 | | |
509 | | - | |
510 | 505 | | |
511 | 506 | | |
512 | 507 | | |
| |||
544 | 539 | | |
545 | 540 | | |
546 | 541 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
553 | 548 | | |
554 | 549 | | |
555 | | - | |
| 550 | + | |
556 | 551 | | |
557 | 552 | | |
558 | 553 | | |
| |||
1369 | 1364 | | |
1370 | 1365 | | |
1371 | 1366 | | |
1372 | | - | |
| 1367 | + | |
1373 | 1368 | | |
1374 | 1369 | | |
1375 | 1370 | | |
| |||
0 commit comments