Changeset cb288f2


Ignore:
Timestamp:
Nov 29, 2018, 12:28:11 AM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
bab4611
Parents:
d22b568
Message:

[tests] increase entropy by adding address to current second

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/utils_tests.h

    rd22b568 rcb288f2  
    6363  time_t now = time(0);
    6464  struct tm *tm_struct = localtime(&now);
    65   int seed = tm_struct->tm_sec;
     65  size_t **tm_address = (void*)&tm_struct;
     66  int seed = tm_struct->tm_sec + (size_t)tm_address;
    6667  //PRINT_WRN("current seed: %d\n", seed);
    6768  srandom (seed);
Note: See TracChangeset for help on using the changeset viewer.