Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

18 rindas
387B

  1. #include <cryptopp/osrng.h>
  2. #include <string>
  3. int main() {
  4. std::string arr;
  5. arr.resize(256);
  6. CryptoPP::OS_GenerateRandomBlock(false,
  7. reinterpret_cast<CryptoPP::byte*>(arr.data()),
  8. arr.size());
  9. for (auto b : arr) {
  10. if (b != '\x00') {
  11. return 0;
  12. }
  13. }
  14. return 1;
  15. }