fixed GH #2038: Poco::Net::MultipartWriter::createBoundary() always returns the same string.

This commit is contained in:
Günter Obiltschnig
2017-12-06 11:10:06 +01:00
parent de692354b4
commit a07c33aaae

View File

@@ -77,6 +77,7 @@ std::string MultipartWriter::createBoundary()
{
std::string boundary("MIME_boundary_");
Random rnd;
rnd.seed();
NumberFormatter::appendHex(boundary, rnd.next(), 8);
NumberFormatter::appendHex(boundary, rnd.next(), 8);
return boundary;