Skip to content
This repository has been archived by the owner on Oct 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #10 from Virinum/master
Browse files Browse the repository at this point in the history
Fix getting random character from charset
  • Loading branch information
ozh committed Jan 7, 2019
2 parents 6ec10c4 + dd30d85 commit addccdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.php
Expand Up @@ -35,7 +35,7 @@ function ozh_random_keyword() {
$possible = yourls_get_shorturl_charset() ;
$str='';
while (strlen($str) < $ozh_random_keyword['length']) {
$str .= substr($possible, rand(0,strlen($possible)),1);
$str .= substr($possible, rand(0,strlen($possible)-1),1);
}
return $str;
}
Expand Down

0 comments on commit addccdb

Please sign in to comment.