1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:55:55 +00:00

increase randomness of shared url keys a bit

This commit is contained in:
Andrew Dolgov
2014-01-17 13:41:27 +04:00
parent 07083d9caa
commit 4c63934bac
4 changed files with 6 additions and 6 deletions

View File

@@ -407,7 +407,7 @@ class Instances extends Plugin implements IHandler {
print "<hr/>";
$access_key = uniqid();
$access_key = uniqid(rand(), true);
/* Access key */
@@ -439,7 +439,7 @@ class Instances extends Plugin implements IHandler {
}
function genHash() {
$hash = uniqid();
$hash = uniqid(base_convert(rand(), 10, 36));
print json_encode(array("hash" => $hash));
}