From 9a4659e5758509bf1bc97bff5b0dd07307fc2383 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sun, 25 May 2014 12:28:59 -0400 Subject: Replaced randombytes_salsa20_random_buf() with randombytes() in av tests. --- auto_tests/toxav_basic_test.c | 2 +- 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) const int frame_size = (av_DefaultSettings.audio_sample_rate * av_DefaultSettings.audio_frame_duration / 1000); int16_t sample_payload[frame_size]; - randombytes_salsa20_random_buf(sample_payload, sizeof(int16_t) * frame_size); + randombytes((uint8_t *)sample_payload, sizeof(int16_t) * frame_size); uint8_t prepared_payload[RTP_PAYLOAD_SIZE]; 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) const int frame_size = (av_DefaultSettings.audio_sample_rate * av_DefaultSettings.audio_frame_duration / 1000); int16_t sample_payload[frame_size]; - randombytes_salsa20_random_buf(sample_payload, sizeof(int16_t) * frame_size); + randombytes((uint8_t *)sample_payload, sizeof(int16_t) * frame_size); uint8_t prepared_payload[RTP_PAYLOAD_SIZE]; -- cgit v1.2.3