Skip to content

Commit

Permalink
use time instrad of rand
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjw24 committed Nov 19, 2024
1 parent ccff73c commit a96f5c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/vvenc_unit_test/vvenc_unit_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <stddef.h>
#include <stdio.h>
#include <vector>
#include <time.h>

#include "CommonLib/TrQuant_EMT.h"
#include "CommonLib/TypeDef.h"
Expand Down Expand Up @@ -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" );
Expand Down

0 comments on commit a96f5c3

Please sign in to comment.