shishi_key_random(3)
β¨ shishi_key_random β¨
okay bestie, welcome to the shishi manual, page shishi_key_random(3) β yes that's the manual name and yes it's giving very "I know a guy who knows a guy" energy π«Ά
πΈ NAME πΈ
shishi_key_random β it's an API function, periodt. that's the whole job description π
π SYNOPSIS π
#include <shishi.h>
int shishi_key_random(Shishi * handle, int32_t type, Shishi_key ** key);
look at her. three arguments, one dream β¨
π¦ ARGUMENTS π¦
Shishi * handleβ the Shishi library handle, and no you cannot just make one up, it's created byshishi_init(). she's the main character of this whole operation, everything runs through her πint32_t typeβ the type of key. like, what kind of key are we manifesting today, bestie πShishi_key ** keyβ a pointer to the structure that will hold the newly created key information. so it's a pointer to a pointer, it's giving double trouble, it's giving inception, we love a nested moment π
π DESCRIPTION π
so what does she actually do? she creates a brand new Key information structure for the key type you asked for, and fills it with some random data. literally generating freshness out of thin air, no cap π
β οΈ important note bestie:KEYonly contains a newly allocated structure if this function is successful. if it flops,KEYis not your girl. don't go dereferencing her and acting surprised, i'm warning you π
β RETURN VALUE β
returns SHISHI_OK iff successful. that's it. that's the whole vibe check. if you get SHISHI_OK, we're slaying. if you don'tβ¦ well π«Ά
π REPORTING BUGS π
found a bug? not me gatekeeping the bug reports β send them to <bug-shishi@gnu.org> π
- GNU Shishi home page:
http://www.gnu.org/software/shishi/ - General help using GNU software:
http://www.gnu.org/gethelp/
π COPYRIGHT π
Copyright Β© 2002-2022 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
(yes, that means you can copy it, bestie, just keep the receipts π§Ύβ¨)
π SEE ALSO π
the full documentation for shishi is maintained as a Texinfo manual. if the info and shishi programs are properly installed at your site, this command:
info shishi
should give you access to the complete manual. go read her, she's iconic π
and that's the page!! this was shishi version 1.0.3, floating around as shishi_key_random(3) β ty for coming to my ted talk, stay random, stay allocated, mwah πππ¦
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms