uniqueName: Increase the random string from 12 bytes to 16 bytes
This commit is contained in:
parent
636a14eb55
commit
8a899bee05
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user