Update random_string with random_bytes
- Updated update.php
This commit is contained in:
parent
8b38f7f012
commit
d38c040d50
2 changed files with 22 additions and 12 deletions
|
@ -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)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue