mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Replaced randombytes_salsa20_random_buf() with randombytes() in av tests.
This commit is contained in:
parent
82e38883a2
commit
9a4659e575
|
@ -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;
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user