diff options
Diffstat (limited to 'auto_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 | ||