MCPcopy Create free account
hub / github.com/LUX-Core/lux / FIPS140_GenerateRandomFiles

Function FIPS140_GenerateRandomFiles

src/cryptopp/test.cpp:422–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420} // End main()
421
422void FIPS140_GenerateRandomFiles()
423{
424#ifdef OS_RNG_AVAILABLE
425 DefaultAutoSeededRNG rng;
426 RandomNumberStore store(rng, ULONG_MAX);
427
428 for (unsigned int i=0; i<100000; i++)
429 store.TransferTo(FileSink((IntToString(i) + ".rnd").c_str()).Ref(), 20000);
430#else
431 cout << "OS provided RNG not available.\n";
432 exit(-1);
433#endif
434}
435
436template <class T, bool NON_NEGATIVE>
437T StringToValue(const std::string& str) {

Callers 1

CRYPTOPP_API mainFunction · 0.85

Calls 4

FileSinkFunction · 0.85
IntToStringFunction · 0.85
TransferToMethod · 0.80
RefMethod · 0.45

Tested by

no test coverage detected