X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffreenet%2Fcaptcha%2Fsimplecaptcha.cpp;h=2d4a4ae6320995e81126b4acf194173587fed1a4;hb=9048d8e482c91960265f29c2b5b3112f2a52f3d8;hp=c030bca0a061c4f472d7b1a953c788e11191a723;hpb=1b0c3b7f86935a772aad271bad4f3d1f37243c2d;p=fms.git diff --git a/src/freenet/captcha/simplecaptcha.cpp b/src/freenet/captcha/simplecaptcha.cpp index c030bca..2d4a4ae 100644 --- a/src/freenet/captcha/simplecaptcha.cpp +++ b/src/freenet/captcha/simplecaptcha.cpp @@ -56,7 +56,8 @@ void SimpleCaptcha::Generate() const std::string SimpleCaptcha::GenerateRandomString(const int len) { - static std::string chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; + // no l,1 O,0 because they look too much alike + static std::string chars="abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ23456789"; std::string temp=""; for(int i=0; i