perf: batch up calls to the RNG (#3537)

This commit is contained in:
Charles Kerr
2022-07-28 10:01:59 -05:00
committed by GitHub
parent 88e898b005
commit 15056045bd
5 changed files with 111 additions and 77 deletions

View File

@@ -479,8 +479,6 @@ static void addPeers(tr_torrent const* tor, tr_variant* list)
static void initField(tr_torrent const* const tor, tr_stat const* const st, tr_variant* const initme, tr_quark key)
{
char* str = nullptr;
switch (key)
{
case TR_KEY_activityDate: