Skip to content

Commit

Permalink
Remove seeding since its handled by PG
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangulbiz committed Jun 22, 2023
1 parent bc602c4 commit bffa600
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/backend/distributed/utils/citus_stat_tenants.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,6 @@ AttributeTask(char *tenantId, int colocationId, CmdType commandType)
#if (PG_VERSION_NUM >= PG_VERSION_15)
double randomValue = pg_prng_double(&pg_global_prng_state);
#else
/* Set a good seed for random */
srandom((unsigned int) time(NULL));

/* Generate a random double between 0 and 1 */
double randomValue = (double) random() / RAND_MAX;
Expand Down

0 comments on commit bffa600

Please sign in to comment.