]> git.ipfire.org Git - thirdparty/tor.git/commit
Refactor the core of choosing by weights into a function
authorNick Mathewson <nickm@torproject.org>
Thu, 9 Aug 2012 17:47:42 +0000 (13:47 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 9 Aug 2012 18:15:58 +0000 (14:15 -0400)
commit07df4dd52d3ab2eea2e8a8fc3222a5d297d077de
treeb11ca0fc673180ab78d37d699f6e1e3790735d7d
parent9bfb274abb9f9e5d445a75f0b67b433be823a730
Refactor the core of choosing by weights into a function

This eliminates duplicated code, and lets us test a hairy piece of
functionality.
changes/bug6538
src/or/routerlist.c
src/or/routerlist.h
src/test/test.h
src/test/test_dir.c