some fix with std::random and uint8_t with MSVC compiler