remove unneeded method
This commit is contained in:
parent
2240d3d0d1
commit
f43d380fe2
@ -30,8 +30,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
#include <cstdio>
|
||||
#include <cctype>
|
||||
|
||||
#include <random>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@ -146,20 +147,4 @@ inline std::size_t URIDecode(const std::string &input, std::string &output)
|
||||
|
||||
inline std::size_t URIDecodeInPlace(std::string &URI) { return URIDecode(URI, URI); }
|
||||
|
||||
inline std::string GetRandomString()
|
||||
{
|
||||
std::string s;
|
||||
s.resize(128);
|
||||
static const char alphanum[] = "0123456789"
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
"abcdefghijklmnopqrstuvwxyz";
|
||||
|
||||
for (std::size_t i = 0; i < 127; ++i)
|
||||
{
|
||||
s[i] = alphanum[rand() % (sizeof(alphanum) - 1)];
|
||||
}
|
||||
s[127] = 0;
|
||||
return s;
|
||||
}
|
||||
|
||||
#endif // STRING_UTIL_HPP
|
||||
|
Loading…
Reference in New Issue
Block a user