diff --git a/test/vvenc_unit_test/vvenc_unit_test.cpp b/test/vvenc_unit_test/vvenc_unit_test.cpp index 460de603..859f82d5 100644 --- a/test/vvenc_unit_test/vvenc_unit_test.cpp +++ b/test/vvenc_unit_test/vvenc_unit_test.cpp @@ -50,6 +50,7 @@ POSSIBILITY OF SUCH DAMAGE. #include #include #include +#include #include "CommonLib/TrQuant_EMT.h" #include "CommonLib/TypeDef.h" @@ -282,14 +283,14 @@ static bool test_TCoeffOps() int main() { - unsigned seed = rand(); + unsigned seed = time( NULL ); srand( seed ); bool passed = test_TCoeffOps(); if( !passed ) { - printf( "\nerror: some tests failed for seed=%d!\n\n", seed ); + printf( "\nerror: some tests failed for seed=%u!\n\n", seed ); exit( EXIT_FAILURE ); } printf( "\nsuccess: all tests passed!\n\n" );