mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:55:55 +00:00
remove unnecessary wrapping from share uniqid() keys
This commit is contained in:
@@ -407,7 +407,7 @@ class Instances extends Plugin implements IHandler {
|
||||
|
||||
print "<hr/>";
|
||||
|
||||
$access_key = sha1(uniqid(rand(), true));
|
||||
$access_key = uniqid();
|
||||
|
||||
/* Access key */
|
||||
|
||||
@@ -439,7 +439,7 @@ class Instances extends Plugin implements IHandler {
|
||||
}
|
||||
|
||||
function genHash() {
|
||||
$hash = sha1(uniqid(rand(), true));
|
||||
$hash = uniqid();
|
||||
|
||||
print json_encode(array("hash" => $hash));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user