mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Merge branch 'codeprof-patch-1'
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.keepassdroid.password;
|
package com.keepassdroid.password;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.security.SecureRandom;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ public class PasswordGenerator {
|
|||||||
|
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
|
|
||||||
Random random = new Random();
|
SecureRandom random = new SecureRandom(); // use more secure variant of Random!
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
|
|
||||||
for (int i = 0; i < length; i++) {
|
for (int i = 0; i < length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user