-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
Executing the following command, note the output:
% solo key rng hexbytes --count 256
Number of bytes must be between 0 and 255, you passed 256
% solo key rng hexbytes --count 0
8ecfe207757421cd382d6a01730742060ac0706bd19af3a30d848c12c87e9af5053c47e124918438b711c0afbccd25477f5f474596ddb2b5f0
% solo key rng hexbytes --count 1
08
Given the context, it doesn't make sense to request 0 bytes and a max limit of 255 bytes is an odd upper limit. This seems like an off-by-one bug where the number of bytes should be between 1 and 256.
Metadata
Metadata
Assignees
Labels
No labels