]>
git.saurik.com Git - apple/libc.git/blob - tests/os_simple_hash.c
1 #include <darwintest.h>
5 T_DECL(os_simple_hash
, "sanity check of os_simple_hash",
6 T_META_ALL_VALID_ARCHS(true))
9 "We made the buttons on the screen look so good you'll want to lick them.";
10 uint64_t hashval
= os_simple_hash_string(string
);
11 T_EXPECT_NE(hashval
, 0ULL, "usually should get a non-0 hash value");
14 arc4random_buf(buf
, sizeof(buf
));
15 hashval
= os_simple_hash(buf
, sizeof(buf
));
16 T_EXPECT_NE(hashval
, 0ULL, "usually should get a non-0 hash value");