Changeset cb288f2


Ignore:
Timestamp:
Nov 29, 2018, 12:28:11 AM (13 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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.