You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2015/07/09 18:25:17 UTC
trafficserver git commit: TS-3747: Error in Huffman decoder for HPACK
Fixed Coverity issue for using rand() in a unit test
Repository: trafficserver
Updated Branches:
refs/heads/master 42a412109 -> f426e6368
TS-3747: Error in Huffman decoder for HPACK
Fixed Coverity issue for using rand() in a unit test
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/f426e636
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/f426e636
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/f426e636
Branch: refs/heads/master
Commit: f426e6368f0c1744ed85653f21772b6fe85e43b0
Parents: 42a4121
Author: Bryan Call <bc...@apache.org>
Authored: Thu Jul 9 09:24:13 2015 -0700
Committer: Bryan Call <bc...@apache.org>
Committed: Thu Jul 9 09:24:13 2015 -0700
----------------------------------------------------------------------
proxy/http2/test_Huffmancode.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f426e636/proxy/http2/test_Huffmancode.cc
----------------------------------------------------------------------
diff --git a/proxy/http2/test_Huffmancode.cc b/proxy/http2/test_Huffmancode.cc
index 7d513d9..6a3498d 100644
--- a/proxy/http2/test_Huffmancode.cc
+++ b/proxy/http2/test_Huffmancode.cc
@@ -10,7 +10,7 @@ test()
char *dst_start = (char *)malloc(1024 * 2);
char string[1024];
for (int i = 0; i < 1024; i++) {
- int num = rand();
+ long num = lrand48();
string[i] = (char)num;
}
const uint8_t *src = (const uint8_t *)string;