summaryrefslogtreecommitdiff
path: root/selftest.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-07-07 06:50:40 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-07-07 06:50:40 -0700
commit6fc70f7c16da968a63e69798bbc73ada442cfd2a (patch)
tree27c4dfb8c3eeba70e273083bfbb4ea838cdcd768 /selftest.cpp
parentf23a43fb81850837c1d85091abf91cc57ae35ef9 (diff)
downloadinfinitytier-6fc70f7c16da968a63e69798bbc73ada442cfd2a.tar.gz
infinitytier-6fc70f7c16da968a63e69798bbc73ada442cfd2a.zip
More cleanup, Linux build fixes.
Diffstat (limited to 'selftest.cpp')
-rw-r--r--selftest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/selftest.cpp b/selftest.cpp
index e6705700..882422bc 100644
--- a/selftest.cpp
+++ b/selftest.cpp
@@ -844,7 +844,7 @@ static int testOther()
memset(key, 0, sizeof(key));
memset(value, 0, sizeof(value));
for(unsigned int q=0;q<32;++q) {
- OSUtils::ztsnprintf(key[q],16,"%.8lx",(unsigned long)(rand() % 1000) + (q * 1000));
+ Utils::hex((uint32_t)((rand() % 1000) + (q * 1000)),key[q]);
int r = rand() % 128;
for(int x=0;x<r;++x)
value[q][x] = ("0123456789\0\t\r\n= ")[rand() % 16];