Clever. So what’s the best strategy to thwart this?
Is true random better than setting it to a fixed number?
Scrambling all often leads to movement of just +- 2.
Is true random better than setting it to a fixed number?
Scrambling all often leads to movement of just +- 2.
If you consistently scramble the digits but only move them by small increments (like ±2), you're essentially creating a pattern that can be detected over time, which is exactly what happened in this case. A better approach would be to randomly choose entirely different digits each time you reset the lock, making it much more difficult for someone to exploit any predictable patterns …