| 34 | |
| 35 | template <class T> |
| 36 | static inline T Read(IInputStream& in) noexcept { |
| 37 | T t = T(); |
| 38 | |
| 39 | in.LoadOrFail(&t, sizeof(t)); |
| 40 | |
| 41 | return t; |
| 42 | } |
| 43 | |
| 44 | TFastRng32::TFastRng32(IInputStream& entropy) |
| 45 | : TFastRng32(Read<ui64>(entropy), Read<ui32>(entropy)) |