]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/instances/init.php
remove unnecessary wrapping from share uniqid() keys
[tt-rss.git] / plugins / instances / init.php
index aac28196f2e18d8b727a760e7d2638e2f4c6acf8..069186ad1fa3fb2104975b16a234c8eaa72b3340 100644 (file)
@@ -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));
        }