]> git.mxchange.org Git - friendica.git/blobdiff - mod/pubsubhubbub.php
random_string calls
[friendica.git] / mod / pubsubhubbub.php
index ea27f048223af99477dbee5cf51b3306997ed84a..26a157e2fd110dba1ede311b2de098ae933a5ddd 100644 (file)
@@ -93,7 +93,7 @@ function pubsubhubbub_init(App $a) {
                }
 
                // do subscriber verification according to the PuSH protocol
-               $hub_challenge = random_string(40);
+               $hub_challenge = Strings::getRandomHex(40);
                $params = 'hub.mode=' .
                        ($subscribe == 1 ? 'subscribe' : 'unsubscribe') .
                        '&hub.topic=' . urlencode($hub_topic) .