diff options
author | Andrew Dolgov <[email protected]> | 2013-12-24 13:27:57 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-12-24 13:27:57 +0400 |
commit | 76d78eb2e75adee00024d3beedaf437c2d91d1c6 (patch) | |
tree | a9a611d9171e23580122adb40c6ebef1cdf83b74 /plugins/instances/init.php | |
parent | d31d521f79026f0341fb4945750b68c504f87e19 (diff) |
remove unnecessary wrapping from share uniqid() keys
Diffstat (limited to 'plugins/instances/init.php')
-rw-r--r-- | plugins/instances/init.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/instances/init.php b/plugins/instances/init.php index aac28196f..069186ad1 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 = 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)); } |