Skip to content

Commit 3064ede

Browse files
committed
Fix default values documentation
1 parent faf1fff commit 3064ede

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The behavior is controlled via `TimingAttackProtector.Config`:
8989

9090
| Parameter | Description | Default |
9191
|:---------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------|
92-
| `maxSamples` | The maximum number of recent execution time samples to keep for statistical analysis. | `20` |
92+
| `maxSamples` | The maximum number of recent execution time samples to keep for statistical analysis. | `10` |
9393
| `samplingRate` | The probability (0.0 to 1.0) of recording a new execution time once `maxSamples` has been reached. A value of `1.0` means every new execution replaces the oldest. | `0.22` |
9494

9595
#### `DelayedCompleter`

src/main/java/com/coreoz/securelogin/TimingAttackProtector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public final class TimingAttackProtector {
2626
* @param maxSamples The maximum number of execution time samples to keep for
2727
* statistical analysis. A larger number provides more
2828
* statistical accuracy but consumes more memory.
29-
* The default value is 20: it enables to reach the first JVM improvements and
29+
* The default value is 10: it enables to reach the first JVM improvements and
3030
* to provide values that are representative enough
3131
* @param samplingRate The probability (from 0.0 to 1.0) of recording a new
3232
* execution time once {@code maxSamples} has been reached.

0 commit comments

Comments
 (0)