Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Rule Timothy (CC/EMT2) <[email protected]>
  • Loading branch information
timrulebosch committed Dec 20, 2023
1 parent 8a441e3 commit 9d07017
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dse/modelc/examples/benchmark/benchmark_model.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ static size_t signal_count;

int generate_random_num(int lower, int upper)
{
static unsigned int seed = time(0);
static unsigned int seed = 0;
if (seed == 0) seed = time(0);
lower = upper/2 - 1;
int num = (rand_r(&seed) % (upper - lower )) + lower;
return num;
Expand Down

0 comments on commit 9d07017

Please sign in to comment.