|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous test stopped when a (any) match for a given substring was
found. While this is slightly faster than an exhaustive search across
all registered keyboard layouts, it could result in a too optimistic
entropy estimation.
Example: The string jkl;'# yield the following entropies depending
whether the UK-keyboard layout had a chance to be tested or not:
Layout Code base Entropy
----------------------------------------------------------------------
US previous bits=17.080 log10=5.142 Multi-word extra bits=1.0
UK this bits=11.116 log10=3.346 Multi-word extra bits=0.0
----------------------------------------------------------------------
The time to perform these checks were identical (i.e. 0.07ms, here).
A new testcase for UK-layout was added.
All legacy tests pass. New test passes. valgrind-check: passed
|