aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/rng.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/rng.cpp')
-rw-r--r--src/cli/rng.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/rng.cpp b/src/cli/rng.cpp
index 3fe8719ce..ef7b3dc6b 100644
--- a/src/cli/rng.cpp
+++ b/src/cli/rng.cpp
@@ -16,7 +16,7 @@ namespace {
int rng(const std::vector<std::string> &args)
{
- if(args.size() == 1)
+ if(args.size() < 2 || args.size() > 3)
{
std::cout << "Usage: " << args[0] << " [--raw-entropy] n\n"
<< "n: number of bytes"