- Timestamp:
- Dec 10, 2013, 2:39:47 PM (11 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- df5eab4
- Parents:
- a7343ffe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/utils_tests.h
ra7343ffe r06dba46 4 4 #include <math.h> 5 5 #include <assert.h> 6 #include "config.h" 6 7 7 8 #define PRINT_ERR(format, args...) fprintf(stderr, "AUBIO-TESTS ERROR: " format , ##args) … … 9 10 #define PRINT_DBG(format, args...) fprintf(stderr, format , ##args) 10 11 #define PRINT_WRN(format, args...) fprintf(stderr, "AUBIO-TESTS WARNING: " format, ##args) 12 13 #ifdef HAVE_WIN_HACKS 14 // http://en.wikipedia.org/wiki/Linear_congruential_generator 15 // no srandom/random on win32 16 17 uint_t srandom_seed = 1029; 18 19 void srandom(uint_t new_seed) { 20 srandom_seed = new_seed; 21 } 22 23 uint_t random(void) { 24 srandom_seed = 1664525 * srandom_seed + 1013904223; 25 return srandom_seed; 26 } 27 #endif 11 28 12 29 void utils_init_random () {
Note: See TracChangeset
for help on using the changeset viewer.