New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core-ify "Random Keywords" plugin #2367
Commits on Jan 27, 2014
Commits on Jul 22, 2016
-
Allow character to appear more than once
Using str_shuffle means that each character can only occur once in the generated string. This reduces the number of permutations possible. For example, using base 36, and 4 characters, there are 36^4 = 1.68M, but the current function can only generate 36*35*34*33 = 1.41M of these. This alternative will use the whole range of possible strings.
Commits on Aug 1, 2017
-
Merge pull request YOURLS#7 from tipichris/patch-1
Allow character to appear more than once
Commits on Feb 27, 2018
-
Convert
random-keywords
to a core plugin* Rename plugin and its functions * Update README with new name * Update license with current year * Make plugin refuse to activate if the old 'Normal plugin' version is still active.
-
Import new core plugin
random-shorturls
This was formerly an external plugin named `random-keywords`. History from the `random-keywords` repo is kept.
Commits on Sep 21, 2019
Commits on Sep 22, 2019
-
Fix getting random character from charset
If strlen($possible) is for example 36, rand could also return 36. But substr starts with position 0. So we have to subtract 1 from strlen($possible). ---- Yoinked from YOURLS/random-keywords#10 by @dgw
-
Commits on Sep 27, 2019
Commits on Sep 29, 2019
-
Use conditional filter registration to avoid random-keywords conflict
The conflict preventer function was broken anyway (ineffective logic AND incorrect syntax)