]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/instances/init.php
add one catchall function to make uniqids/keyhashes/etc used by tt-rss
[tt-rss.git] / plugins / instances / init.php
index b23f45a0184331a15ee0637dedb8878eedfc2b65..947bc2a16e921dac1f080961aa16c655708515cc 100644 (file)
@@ -407,7 +407,7 @@ class Instances extends Plugin implements IHandler {
 
                print "<hr/>";
 
-               $access_key = uniqid(rand(), true);
+               $access_key = uniqid_short();
 
                /* Access key */
 
@@ -439,7 +439,7 @@ class Instances extends Plugin implements IHandler {
        }
 
        function genHash() {
-               $hash = uniqid(base_convert(rand(), 10, 36));
+               $hash = uniqid_short();
 
                print json_encode(array("hash" => $hash));
        }