uniqueName: Increase the random string from 12 bytes to 16 bytes

This commit is contained in:
Ryan Prichard 2016-03-29 21:07:20 -05:00
parent 636a14eb55
commit 8a899bee05

View File

@ -129,7 +129,7 @@ std::wstring GenRandom::uniqueName() {
// It isn't clear to me how the crypto APIs would fail. It *probably*
// doesn't matter that much anyway? In principle, a predictable pipe name
// is subject to a local denial-of-service attack.
auto random = randomHexString(12);
auto random = randomHexString(16);
if (!random.empty()) {
sb << L'-' << random;
}