diff options
author | irungentoo <irungentoo@gmail.com> | 2014-05-25 12:28:59 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-05-25 12:28:59 -0400 |
commit | 9a4659e5758509bf1bc97bff5b0dd07307fc2383 (patch) | |
tree | f9259feacb3df9d281cb6ce32c4836318f31ee2b | |
parent | 82e38883a239f265089982bc255de0f9db618ce7 (diff) |
Replaced randombytes_salsa20_random_buf() with randombytes() in av tests.
-rw-r--r-- | auto_tests/toxav_basic_test.c | 2 | ||||
-rw-r--r-- | auto_tests/toxav_many_test.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/auto_tests/toxav_basic_test.c b/auto_tests/toxav_basic_test.c index 8cd78d96..c35af270 100644 --- a/auto_tests/toxav_basic_test.c +++ b/auto_tests/toxav_basic_test.c | |||
@@ -225,7 +225,7 @@ START_TEST(test_AV_flows) | |||
225 | 225 | ||
226 | const int frame_size = (av_DefaultSettings.audio_sample_rate * av_DefaultSettings.audio_frame_duration / 1000); | 226 | const int frame_size = (av_DefaultSettings.audio_sample_rate * av_DefaultSettings.audio_frame_duration / 1000); |
227 | int16_t sample_payload[frame_size]; | 227 | int16_t sample_payload[frame_size]; |
228 | randombytes_salsa20_random_buf(sample_payload, sizeof(int16_t) * frame_size); | 228 | randombytes((uint8_t *)sample_payload, sizeof(int16_t) * frame_size); |
229 | 229 | ||
230 | uint8_t prepared_payload[RTP_PAYLOAD_SIZE]; | 230 | uint8_t prepared_payload[RTP_PAYLOAD_SIZE]; |
231 | int payload_size; | 231 | int payload_size; |
diff --git a/auto_tests/toxav_many_test.c b/auto_tests/toxav_many_test.c index 75aec9c7..1e41b7fa 100644 --- a/auto_tests/toxav_many_test.c +++ b/auto_tests/toxav_many_test.c | |||
@@ -138,7 +138,7 @@ void *in_thread_call (void *arg) | |||
138 | 138 | ||
139 | const int frame_size = (av_DefaultSettings.audio_sample_rate * av_DefaultSettings.audio_frame_duration / 1000); | 139 | const int frame_size = (av_DefaultSettings.audio_sample_rate * av_DefaultSettings.audio_frame_duration / 1000); |
140 | int16_t sample_payload[frame_size]; | 140 | int16_t sample_payload[frame_size]; |
141 | randombytes_salsa20_random_buf(sample_payload, sizeof(int16_t) * frame_size); | 141 | randombytes((uint8_t *)sample_payload, sizeof(int16_t) * frame_size); |
142 | 142 | ||
143 | uint8_t prepared_payload[RTP_PAYLOAD_SIZE]; | 143 | uint8_t prepared_payload[RTP_PAYLOAD_SIZE]; |
144 | 144 | ||