From 64174491dac84c559db5c48ed850177fa3eb4da0 Mon Sep 17 00:00:00 2001 From: jellybrick Date: Sat, 14 Mar 2020 23:21:30 +0900 Subject: Fix #127, #128 & Code quality improvements It seems that the author of this code misunderstood 'Array of PollOption' as 'PollOption'. --- src/net/HttpParser.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/net/HttpParser.cpp') diff --git a/src/net/HttpParser.cpp b/src/net/HttpParser.cpp index 8006c85..2d3085f 100644 --- a/src/net/HttpParser.cpp +++ b/src/net/HttpParser.cpp @@ -81,7 +81,6 @@ string HttpParser::generateMultipartFormData(const vector& args, con string HttpParser::generateMultipartBoundary(const vector& args) const { string result; - srand((std::uint32_t) time(nullptr)); for (const HttpReqArg& item : args) { if (item.isFile) { while (result.empty() || item.value.find(result) != string::npos) { -- cgit v1.2.3