System Grab Bag

View all TLDR pages from Linux (or from all pages)

mcookie

Generates random 128-bit hexadecimal numbers. More information: https://manned.org/mcookie.
  • Generate a random number:
    mcookie
  • Generate a random number, using the contents of a file as a seed for the randomness:
    mcookie --file {{path/to/file}}
  • Generate a random number, using a specific number of bytes from a file as a seed for the randomness:
    mcookie --file {{path/to/file}} --max-size {{number_of_bytes}}
  • Print the details of the randomness used, such as the origin and seed for each source:
    mcookie --verbose

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.