Repository navigation
Commit 8fd9785
common/hash_utils: clarify RejectionSample does modular reduction, not rejection
RejectionSample performs a bare Mod(eHash, q) with no rejection loop.
Document that it is only (near-)uniform when q is within a small factor
of the 256-bit digest width (safe for all current ~256-bit callers,
bias <= 2^-128). No functional change; name kept for caller compatibility.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a831f22 commit 8fd9785
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
17 | 26 | | |
18 | 27 | | |
19 | 28 | | |
| |||
0 commit comments