Browse Source

Initialize the C library RNG

The standard RNG must be initialized, otherwise shares will
always be assigned the same numbers.
master
Damien Goutte-Gattat 5 years ago
parent
commit
57c57a76b2
  1. 2
      src/gfsec-split.c

2
src/gfsec-split.c

@ -117,6 +117,8 @@ main(int argc, char **argv)
keep_original = 0;
output_base = config_path = NULL;
srandom(time(NULL));
if ( ! (cfg = gfsec_secret_new()) )
err(EXIT_FAILURE, "Cannot create secret");

Loading…
Cancel
Save