| 314 | } |
| 315 | |
| 316 | const String generateRandomUnique(const String &additionalRandomData) |
| 317 | { |
| 318 | Time t = Time::getCurrentTime(); |
| 319 | Random r(t.getHighResolutionTicks()); |
| 320 | String randData = additionalRandomData |
| 321 | + SystemStats::getComputerName() |
| 322 | + SystemStats::getCpuVendor() |
| 323 | + SystemStats::getFullUserName() |
| 324 | + SystemStats::getJUCEVersion() |
| 325 | + SystemStats::getLogonName() |
| 326 | + SystemStats::getOperatingSystemName(); |
| 327 | |
| 328 | BigInteger bi; |
| 329 | r.fillBitsRandomly(bi, 0, 64); |
| 330 | |
| 331 | return (bi.toMemoryBlock().toBase64Encoding()); |
| 332 | } |
| 333 | |
| 334 | const String generateRandomUniquePluginId() |
| 335 | { |
no test coverage detected