diff --git a/container/src/root/macro/rootlogon.C b/container/src/root/macro/rootlogon.C index 47e1b50..2fd8158 100644 --- a/container/src/root/macro/rootlogon.C +++ b/container/src/root/macro/rootlogon.C @@ -60,39 +60,39 @@ void help() << " of Crypto++-generated cryptographically secure random\n" << " numbers:\n" << "\n" - << " root [0] #include \"../src/hash.hh\"\n" - << " root [1] #include \"../src/random.hh\"\n" - << " root [2] using g_Random = " + << " root [0] using g_Random = " "docker_finance::crypto::cryptopp::Random;\n" - << " root [3] using g_Hash = " + << " root [1] using g_Hash = " "docker_finance::crypto::libsodium::Hash;\n" - << " root [4] g_Random r; g_Hash h;\n" - << " root [5] for (size_t i{}; i < " + << " root [2] g_Random r; g_Hash h;\n" + << " root [3] for (size_t i{}; i < " "std::numeric_limits::max(); i++) {\n" - << " root (cont'ed, cancel with .@) [6] uint32_t num = " + << " root (cont'ed, cancel with .@) [4] uint32_t num = " "r.generate();\n" - << " root (cont'ed, cancel with .@) [7] std::cout << " - "h.encode(num) << \" = \" << num << \"\\n\"; }\n" + << " root (cont'ed, cancel with .@) [5] std::cout << " + "h.encode(num)\n" + << " root (cont'ed, cancel with .@) [6] << \" = \" << num << " + "\"\\n\";\n" + << " root (cont'ed, cancel with .@) [7] }\n" << "\n" << " Note: generate Doxygen to see all supported cryptographic\n" << " libraries and hash types.\n" << "\n" << " 2. Use Tools utility\n" << "\n" - << " root [0] #include \"../src/utility.hh\"\n" - << " root [1] docker_finance::utility::Tools tools;\n" + << " root [0] docker_finance::utility::Tools tools;\n" << "\n" << " // Create a variable within interpreter\n" - << " root [2] btc=0.87654321+0.12345678+0.00000078\n" + << " root [1] btc=0.87654321+0.12345678+0.00000078\n" << " (double) 1.0000008\n" << "\n" << " // Print variable up to N decimal places\n" - << " root [3] tools.print_value(btc, 8);\n" + << " root [2] tools.print_value(btc, 8);\n" << " 1.00000077\n" << "\n" << " // Use tab autocomplete for class members to print random\n" << " // numbers within given intervals\n" - << " root [4] " + << " root [3] " "tools.print_dist >, " "double>(0.1, btc);\n" << " 0.13787670\n" @@ -121,7 +121,7 @@ void help() << "Help:\n" << "\n" << " 1. Print ROOT's help usage\n" - << " root [1] .help\n" + << " root [0] .help\n" << "\n" << " 2. Print this help usage\n" << " root [0] help()\n"