mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Upgrade libsrtp from 2.0.0 to 2.3.0, with source code. 4.0.79
This commit is contained in:
parent
3749d4d833
commit
8089fc004c
111 changed files with 45307 additions and 5 deletions
17
trunk/3rdparty/libsrtp-2-fit/fuzzer/mt19937.cpp
vendored
Normal file
17
trunk/3rdparty/libsrtp-2-fit/fuzzer/mt19937.cpp
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
#include <random>
|
||||
#include <cstdint>
|
||||
|
||||
std::mt19937* mt_rand = NULL;
|
||||
|
||||
extern "C" void fuzz_mt19937_init(uint32_t seed) {
|
||||
mt_rand = new std::mt19937(seed);
|
||||
}
|
||||
|
||||
extern "C" uint32_t fuzz_mt19937_get(void) {
|
||||
return (*mt_rand)();
|
||||
}
|
||||
|
||||
extern "C" void fuzz_mt19937_destroy(void) {
|
||||
delete mt_rand;
|
||||
mt_rand = NULL;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue