Some checks failed
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Failing after 13m15s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Failing after 13m1s
sm-rpc / build (Release, host.gcc) (push) Failing after 13m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Failing after 13m35s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Failing after 13m56s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Failing after 14m22s
sm-rpc / build (Debug, host.gcc) (push) Failing after 14m49s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Failing after 15m13s
21 lines
463 B
C
21 lines
463 B
C
#include <stdio.h>
|
|
|
|
#define STB_DS_IMPLEMENTATION
|
|
#define STBDS_SIPHASH_2_4
|
|
#define STBDS_TEST_SIPHASH_2_4
|
|
#include "../stb_ds.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
unsigned char mem[64];
|
|
int i,j;
|
|
for (i=0; i < 64; ++i) mem[i] = i;
|
|
for (i=0; i < 64; ++i) {
|
|
size_t hash = stbds_hash_bytes(mem, i, 0);
|
|
printf(" { ");
|
|
for (j=0; j < 8; ++j)
|
|
printf("0x%02x, ", (unsigned char) ((hash >> (j*8)) & 255));
|
|
printf(" },\n");
|
|
}
|
|
return 0;
|
|
} |