[tor-bugs] #19875 [Core Tor/Tor]: shuffle our bridges when we load them from config

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Aug 9 19:26:53 UTC 2016


#19875: shuffle our bridges when we load them from config
--------------------------+------------------------------
 Reporter:  arma          |          Owner:
     Type:  enhancement   |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: 0.2.???
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:  easy          |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------
Changes (by arma):

 * keywords:   => easy


Comment:

 I believe we can accomplish this goal by doing a
 {{{
 smartlist_shuffle(bridge_list);
 }}}
 right after where we call {{{sweep_bridge_list()}}} in config.c.

 The clean way to do it is probably to make a new function
 {{{shuffle_bridge_list()}}} that we call from that same place in config.c,
 with a comment about why we're doing it, and then that new function lives
 in entrynodes.c right under the {{{sweep_bridge_list()}}} function.

 I am tagging as keyword easy because it now just remains to write the code
 that way and write up a changelog entry. :)

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/19875#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list