HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mcookie — Generate random 128-bit hexadecimal numbers. More information: <https://manned.org/mcookie>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
bitcommand128clirandomhexadecimalmcookiegenerate
linux

Problem

How to use the mcookie command: Generate random 128-bit hexadecimal numbers. More information: <https://manned.org/mcookie>.

Solution

mcookie — Generate 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 {{[-f|--file]}} {{path/to/file}}


Generate a random number, using a specific number of bytes from a file as a seed for the randomness:
mcookie {{[-f|--file]}} {{path/to/file}} {{[-m|--max-size]}} {{number_of_bytes}}


Print the details of the randomness used, such as the origin and seed for each source:
mcookie {{[-v|--verbose]}}

Code Snippets

Generate a random number

mcookie

Generate a random number, using the contents of a file as a seed for the randomness

mcookie {{[-f|--file]}} {{path/to/file}}

Generate a random number, using a specific number of bytes from a file as a seed for the randomness

mcookie {{[-f|--file]}} {{path/to/file}} {{[-m|--max-size]}} {{number_of_bytes}}

Print the details of the randomness used, such as the origin and seed for each source

mcookie {{[-v|--verbose]}}

Context

tldr-pages: linux/mcookie

Revisions (0)

No revisions yet.