1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[Support] Fix up comments.

llvm-svn: 156239
This commit is contained in:
Daniel Dunbar 2012-05-05 16:39:22 +00:00
parent 6fbad750f3
commit d7d85c4a85

View File

@ -366,14 +366,12 @@ error_code unique_file(const Twine &model, int &result_fd,
}
}
// Replace '%' with random chars. From here on, DO NOT modify model. It may be
// needed if the randomly chosen path already exists.
// From here on, DO NOT modify model. It may be needed if the randomly chosen
// path already exists.
SmallString<128> RandomPath = Model;
retry_random_path:
// This is opened here instead of above to make it easier to track when to
// close it. Collisions should be rare enough for the possible extra syscalls
// not to matter.
// Replace '%' with random chars.
for (unsigned i = 0, e = Model.size(); i != e; ++i) {
if (Model[i] == '%')
RandomPath[i] = "0123456789abcdef"[sys::Process::GetRandomNumber() & 15];