GETRANDOM(1)

πŸ“¦
version 1045 Β· 3 versions
, in debian bookworm, ubuntu jammy, ubuntu noble, ubuntu questing

πŸ’– GETRANDOM πŸ’–

okay bestie, this is the manual page for getrandom, which lives in the User Commands section. It Runs TPM2_GetRandom. That's the whole vibe. Short page, but we're gonna read it together, fr fr. πŸŽ€


✨ NAME ✨

getrandom β€” Runs TPM2_GetRandom πŸ¦‹


🌸 DESCRIPTION 🌸

okay so first thing's first, no cap: the page opens with a little note that

--version-string=v1045 is not a valid option

and honestly? iconic of it to just say that up front. πŸ’…

Then it's getrandom again, and again it Runs TPM2_GetRandom. ✨

  • -by β€” bytes requested
  • -of β€” output file, with -nz, appends nul terminator (default do not save)
  • -nz β€” get random number with no zero bytes (for authorization value)
  • -ns β€” no space, no text, no newlines
  • -se[0-2] β€” session handle / attributes
    • 01 continue
    • 20 command decrypt
    • 40 response encrypt

and then, as its own lil line, the glow-up:

just a string of hexascii suitable for a symmetric key 🌈

aaaand then β€” and this is the part where I need you to breathe, bestie 😭 β€” the page says all of that again. Same words. Same everything. It's giving "I copied my notes twice and nobody stopped me." So here it is, one more time, in full, because I promised not to skip a single crumb:


🫢 the encore (yes really) 🫢

--version is not a valid option

getrandom

Runs TPM2_GetRandom

  • -by β€” bytes requested
  • -of β€” output file, with -nz, appends nul terminator (default do not save)
  • -nz β€” get random number with no zero bytes (for authorization value)
  • -ns β€” no space, no text, no newlines
  • -se[0-2] β€” session handle / attributes
    • 01 continue
    • 20 command decrypt
    • 40 response encrypt

just a string of hexascii suitable for a symmetric key ⭐


πŸ’€ no but fr, this is a genuine heads-up: the source page literally lists this description block twice, once with the --version-string=v1045 line at the top and once with the --version line at the top. Both versions are right there in the original. I'm not making this up, I'm just reporting the lore. πŸ‘‘

πŸŽ€ SEE ALSO πŸŽ€

The full documentation for getrandom is maintained as a Texinfo manual. If the info and getrandom programs are properly installed at your site, the command

info getrandom

should give you access to the complete manual. slay πŸ’…βœ¨


okay and that's the whole page!! this one is from the getrandom manual, July 2017 edition, page GETRANDOM(1). short, sweet, mildly chaotic, and we ate every last line of it. mwah πŸ’–πŸŒΈπŸ¦‹πŸŽ€

πŸ“¦ where this page comes from