Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bluetooth: smp: Fix biased random passkey generation
Since u32 range size is not a multiple of 1,000,000, current passkey generation logic is biased. Fixed this by adding a routine that selects passkey again if passkey is 4,200,000,000 or more. Signed-off-by: Mincheol Son <encrypted.def@gmail.com>
- Loading branch information