mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Signed-off-by: Alexey Polyudov <apolyudov@google.com> Change-Id: I2cf5bf225b76f4c1541954651f3a7544a14e0cec
24 lines
380 B
C++
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_
|