aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test/common.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/test/common.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to '')
-rw-r--r--linden/indra/test/common.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/test/common.cpp b/linden/indra/test/common.cpp
index 1be0931..97ff21c 100644
--- a/linden/indra/test/common.cpp
+++ b/linden/indra/test/common.cpp
@@ -109,7 +109,7 @@ namespace tut
109 // gen up a starting point 109 // gen up a starting point
110 typedef std::vector<U8> buf_t; 110 typedef std::vector<U8> buf_t;
111 buf_t source; 111 buf_t source;
112 srand(i); 112 srand(i); /* Flawfinder: ignore */
113 S32 size = rand() % 1000 + 10; 113 S32 size = rand() % 1000 + 10;
114 std::generate_n( 114 std::generate_n(
115 std::back_insert_iterator<buf_t>(source), 115 std::back_insert_iterator<buf_t>(source),
@@ -157,7 +157,7 @@ namespace tut
157 // gen up a starting point 157 // gen up a starting point
158 typedef std::vector<U8> buf_t; 158 typedef std::vector<U8> buf_t;
159 buf_t source; 159 buf_t source;
160 srand(666 + i); 160 srand(666 + i); /* Flawfinder: ignore */
161 S32 size = rand() % 1000 + 10; 161 S32 size = rand() % 1000 + 10;
162 std::generate_n( 162 std::generate_n(
163 std::back_insert_iterator<buf_t>(source), 163 std::back_insert_iterator<buf_t>(source),
@@ -307,7 +307,7 @@ namespace tut
307 { 307 {
308 // gen up a starting point 308 // gen up a starting point
309 std::string expected; 309 std::string expected;
310 srand(1337 + i); 310 srand(1337 + i); /* Flawfinder: ignore */
311 S32 size = rand() % 30 + 5; 311 S32 size = rand() % 30 + 5;
312 std::generate_n( 312 std::generate_n(
313 std::back_insert_iterator<std::string>(expected), 313 std::back_insert_iterator<std::string>(expected),
@@ -436,7 +436,7 @@ namespace tut
436 void mem_object::test<1>() 436 void mem_object::test<1>()
437 { 437 {
438 const char HELLO_WORLD[] = "hello world"; 438 const char HELLO_WORLD[] = "hello world";
439 LLMemoryStream mem((U8*)&HELLO_WORLD[0], strlen(HELLO_WORLD)); 439 LLMemoryStream mem((U8*)&HELLO_WORLD[0], strlen(HELLO_WORLD)); /* Flawfinder: ignore */
440 std::string hello; 440 std::string hello;
441 std::string world; 441 std::string world;
442 mem >> hello >> world; 442 mem >> hello >> world;