mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 13:10:29 +01:00
nmcli: fix generating hotspot password
The generated password was all non-alphanumeric characters.
Fixes: 6e96d71731 ('all: use nm_random_*() instead of g_random_*()')
This commit is contained in:
parent
1399aa925d
commit
ac2fb0e93d
1 changed files with 1 additions and 1 deletions
|
|
@ -4111,7 +4111,7 @@ generate_wpa_key(char *key, size_t len)
|
|||
do {
|
||||
c = nm_random_u64_range_full(33, 126, TRUE);
|
||||
/* too many non alphanumeric characters are hard to remember for humans */
|
||||
} while (g_ascii_isalnum(c));
|
||||
} while (!g_ascii_isalnum(c));
|
||||
|
||||
key[i] = (char) c;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue