aboutsummaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-02-11 11:28:08 -0500
committerNick Mathewson <nickm@torproject.org>2013-02-11 11:28:08 -0500
commit2b4d4ccb3d1ecf984012b39eb361307785b0c1c0 (patch)
tree037f87559f31a6804bdf62ab9c948f3138990fae /changes
parentd86a45f991693cf2367a6ccb94fc29c22f5f7b45 (diff)
parent69ab7cd8281dcb312eb47b738d1c620e7bc042d9 (diff)
downloadtor-2b4d4ccb3d1ecf984012b39eb361307785b0c1c0.tar.gz
tor-2b4d4ccb3d1ecf984012b39eb361307785b0c1c0.zip
Merge remote-tracking branch 'public/bug7801_v2'
Diffstat (limited to 'changes')
-rw-r--r--changes/bug780113
1 files changed, 13 insertions, 0 deletions
diff --git a/changes/bug7801 b/changes/bug7801
new file mode 100644
index 0000000000..1d6d021f3f
--- /dev/null
+++ b/changes/bug7801
@@ -0,0 +1,13 @@
+ o Minor bugfixes:
+ - When choosing which stream on a formerly stalled circuit to wake
+ first, make better use of the platform's weak RNG. Previously, we
+ had been using the % ("modulo") operator to try to generate a 1/N
+ chance of picking each stream, but this behaves badly with many
+ platforms' choice of weak RNG. Fix for bug 7801; bugfix on
+ 0.2.2.20-alpha.
+ - Use our own weak RNG when we need a weak RNG. Windows's rand()
+ and Irix's random() only return 15 bits; Solaris's random()
+ returns more bits but its RAND_MAX says it only returns 15, and
+ so on. Fixes another aspect of bug 7801; bugfix on
+ 0.2.2.20-alpha.
+