projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a91a9d
)
[tests] srandom take unsigned int
author
Paul Brossier
<piem@piem.org>
Wed, 28 Nov 2018 23:46:31 +0000
(
00:46
+0100)
committer
Paul Brossier
<piem@piem.org>
Wed, 28 Nov 2018 23:46:31 +0000
(
00:46
+0100)
tests/utils_tests.h
patch
|
blob
|
history
diff --git
a/tests/utils_tests.h
b/tests/utils_tests.h
index
53531ce
..
798d6ca
100644
(file)
--- a/
tests/utils_tests.h
+++ b/
tests/utils_tests.h
@@
-65,7
+65,7
@@
void utils_init_random (void) {
size_t **tm_address = (void*)&tm_struct;
int seed = tm_struct->tm_sec + (size_t)tm_address;
//PRINT_WRN("current seed: %d\n", seed);
- srandom (seed);
+ srandom (
(unsigned int)
seed);
}
// create_temp_sink / close_temp_sink