Mercurial > hg > svcore
comparison base/TempDirectory.cpp @ 1057:5c5d4863b428 tonioni
Merge from cxx11 branch
| author | Chris Cannam |
|---|---|
| date | Mon, 23 Mar 2015 11:26:28 +0000 |
| parents | cc27f35aa75c |
| children | c811991a5efa |
comparison
equal
deleted
inserted
replaced
| 1056:c4898e57eea5 | 1057:5c5d4863b428 |
|---|---|
| 108 static QString chars = | 108 static QString chars = |
| 109 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | 109 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; |
| 110 | 110 |
| 111 QString suffix; | 111 QString suffix; |
| 112 int padlen = 6, attempts = 100; | 112 int padlen = 6, attempts = 100; |
| 113 unsigned int r = time(0) ^ getpid(); | 113 unsigned int r = (unsigned int)(time(0) ^ getpid()); |
| 114 | 114 |
| 115 for (int i = 0; i < padlen; ++i) { | 115 for (int i = 0; i < padlen; ++i) { |
| 116 suffix += "X"; | 116 suffix += "X"; |
| 117 } | 117 } |
| 118 | 118 |
