2022-08-26 15:44:59 +00:00
|
|
|
// Copyright 2014 Google LLC. All rights reserved.
|
2014-02-14 23:21:05 +00:00
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
2014-01-07 18:32:23 +00:00
|
|
|
//
|
|
|
|
// Fake, deterministic PRNG for OpenSSL to be used for unit testing.
|
|
|
|
|
2017-12-20 00:56:36 +00:00
|
|
|
#ifndef PACKAGER_MEDIA_BASE_FAKE_PRNG_H
|
|
|
|
#define PACKAGER_MEDIA_BASE_FAKE_PRNG_H
|
2014-01-07 18:32:23 +00:00
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2014-01-07 18:32:23 +00:00
|
|
|
namespace media {
|
|
|
|
namespace fake_prng {
|
|
|
|
|
2014-01-24 18:46:46 +00:00
|
|
|
/// Start using fake, deterministic PRNG for OpenSSL.
|
|
|
|
/// @return true if successful, false otherwise.
|
2014-01-07 18:32:23 +00:00
|
|
|
bool StartFakePrng();
|
|
|
|
|
2014-01-24 18:46:46 +00:00
|
|
|
/// Stop using fake, deterministic PRNG for OpenSSL.
|
2014-01-07 18:32:23 +00:00
|
|
|
void StopFakePrng();
|
|
|
|
|
|
|
|
} // namespace fake_prng
|
|
|
|
} // namespace media
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|
2014-01-07 18:32:23 +00:00
|
|
|
|
2017-12-20 00:56:36 +00:00
|
|
|
#endif // PACKAGER_MEDIA_BASE_FAKE_PRNG_H
|