diff options
author | Jean-Marc Valin <jean-marc.valin@octasic.com> | 2009-10-03 01:48:25 +0400 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@octasic.com> | 2009-10-03 01:48:25 +0400 |
commit | 1e3263a2674116e3fe2e7e0266e19184f5324a7d (patch) | |
tree | a9cd46373991b9874ce4d8c8c1e05e2c813b84e0 /tests | |
parent | 4213a7254c6192788199da84aed67e2d36d1a02a (diff) |
Fix for some test program compat and an assertion that didn't make sense anymore
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dft-test.c | 1 | ||||
-rw-r--r-- | tests/ectest.c | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/dft-test.c b/tests/dft-test.c index d44f7b4..7f56c2c 100644 --- a/tests/dft-test.c +++ b/tests/dft-test.c @@ -8,6 +8,7 @@ #define CELT_C #include "../libcelt/stack_alloc.h" #include "../libcelt/kiss_fft.c" +#include "../libcelt/entcode.c" #ifndef M_PI diff --git a/tests/ectest.c b/tests/ectest.c index 397a29e..ec466b3 100644 --- a/tests/ectest.c +++ b/tests/ectest.c @@ -5,8 +5,6 @@ #include <stdlib.h> #include <stdio.h> #include <math.h> -#include <sys/types.h> -#include <unistd.h> #include <time.h> #include "entcode.h" #include "entenc.h" @@ -49,7 +47,7 @@ int main(int _argc,char **_argv){ if (_argc > 1) seed = atoi(_argv[1]); else - seed = (time(NULL) ^ (getpid()%(1<<16) << 16)); + seed = time(NULL); /*Testing encoding of raw bit values.*/ ptr = malloc(DATA_SIZE); ec_byte_writeinit_buffer(&buf, ptr, DATA_SIZE); |