diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-09-01 18:32:22 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-09-01 19:01:45 +0200 |
commit | 76abe9a5aad69eb7e67295588c6825cdae0341af (patch) | |
tree | f118c70def8f789a07a2e81a3c8966fa56e322e7 /po/ru.po | |
parent | 63d609985eb7eefa5f2332bfe4fab96f017760a1 (diff) |
use clock() as source for SRV randomness
Initializing a random number generator with the time since epoch could
be good enough, but reaches its limits in test code as the 100
iterations might very well happen in the same second and hence the seed
number is always the sameā¦ clock() has a way lower resolution so it
changes more often and not unimportant: If many users start the update
at the same time it isn't to unlikely the SRV record will be ordered in
the same second choosing the same for them all, but it seems less likely
that the exact same clock() time has passed for them.
And if I have to touch this, lets change a few other things as well to
make me and/or compilers a bit happier (clang complained about the usage
of a GNU extension in the testcase for example).
Diffstat (limited to 'po/ru.po')
0 files changed, 0 insertions, 0 deletions