12.0.2
Changelog for ownCloud Web 12.0.2 (2025-06-17)
Summary
- Bugfix - Ensure uniform distribution when generating password: #12575
Details
-
Bugfix - Ensure uniform distribution when generating password: #12575
Replaced the biased division-based random index generation with a method that
ensures uniform distribution. This can be achieved by using a rejection sampling
approach, similar to the one used earlier in thegetRandomCharsFromSet
function. Specifically, we will calculate asetLimitfor the array length and
discard random values that fall outside this range. This ensures that the modulo
operation produces unbiased results.