From 3ceb893f66920383b0f79faf1fc896469ee3d2a4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Aug 2015 19:21:06 +0300 Subject: add one catchall function to make uniqids/keyhashes/etc used by tt-rss --- plugins/instances/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/instances') 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 "
"; - $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)); } -- cgit v1.2.3