summaryrefslogtreecommitdiff
path: root/plugins/instances
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-08-03 19:21:06 +0300
committerAndrew Dolgov <[email protected]>2015-08-03 19:21:06 +0300
commit3ceb893f66920383b0f79faf1fc896469ee3d2a4 (patch)
tree27a9601fe635af1c4410133edbe141574bf389d6 /plugins/instances
parente053fd8d6bd02ea1943b61f3ace5396845c2d1db (diff)
add one catchall function to make uniqids/keyhashes/etc used by tt-rss
Diffstat (limited to 'plugins/instances')
-rw-r--r--plugins/instances/init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/instances/init.php b/plugins/instances/init.php
index b23f45a01..947bc2a16 100644
--- a/plugins/instances/init.php
+++ b/plugins/instances/init.php
@@ -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));
}