Skip to content

Do not generate passwords with std::rand()

Guido Berhörster requested to merge personal/gberh/hotspot-default-password into main

Random passwords are currently generated via the std::rand() pseudo-random generator seeded with seconds since epoch. In addition the number is subject to modulo bias. Replace it with a cryptographically sound random generator with bounds and increase both the number of symbols as well as the password length.

This fixes #99 (closed).

Edited by Guido Berhörster

Merge request reports