Files
nearby/cpp/platform/prng.h
T
Alexey Polyudov 204f76077d nearby: snapshot as of cl/296436629
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
Change-Id: I2cf5bf225b76f4c1541954651f3a7544a14e0cec
2020-04-04 12:52:31 -07:00

24 lines
380 B
C++

#ifndef PLATFORM_PRNG_H_
#define PLATFORM_PRNG_H_
#include <cstdint>
namespace location {
namespace nearby {
// A (non-cryptographic) pseudo-random number generator.
class Prng {
public:
Prng();
~Prng();
std::int32_t nextInt32();
std::uint32_t nextUInt32();
std::int64_t nextInt64();
};
} // namespace nearby
} // namespace location
#endif // PLATFORM_PRNG_H_