Update random_string with random_bytes

- Updated update.php
This commit is contained in:
Hypolite Petovan 2017-11-25 21:15:50 -05:00
commit d38c040d50
2 changed files with 22 additions and 12 deletions

View file

@ -616,7 +616,7 @@ function update_1075() {
foreach ($r as $rr) {
$found = true;
do {
$guid = substr(random_string(),0,16);
$guid = random_string(16);
$x = q("SELECT `uid` FROM `user` WHERE `guid` = '%s' LIMIT 1",
dbesc($guid)
);