shishi_randomize(3)
π shishi_randomize π
okay bestie, welcome to the shishi manual, section 3 β this one's about shishi_randomize, and it's genuinely such a cute little function. she fills your buffer with cryptographically random data and asks for basically nothing in return. queen behavior fr fr π
πΈ NAME πΈ
shishi_randomize β an API function. that's the whole vibe, no notes β¨
π SYNOPSIS π
#include <shishi.h>
int shishi_randomize(Shishi * handle, int strong, void * data, size_t
datalen);
look at her. four little arguments, one int coming back. so simple, so iconic π«Ά
π¦ ARGUMENTS π¦
Shishi * handleβ the shishi handle, which you got fromshishi_init(). like, you can't just show up without it, bestie, that's your whole identity here.int strongβ okay so this one is doing a lot with a little. it's0iff the operation should not block, and non-0when you want very strong randomness. so like,0= fast and chill, non-0= go all in and possibly make me wait. choose wisely πvoid * dataβ the output array, aka the lil container that's gonna get filled with random data. it's giving empty cup, about to be blessed πsize_t datalenβ the size of that output array. she needs to know how much random to pour in. no cap.
β¨ DESCRIPTION β¨
Store cryptographically random data of given size in the provided buffer.
that's it. that's the whole thing. she takes your buffer, she takes a size, and she makes it random. lowkey the most trustworthy friend in the group chat π₯
π RETURN VALUE π
Returns SHISHI_OK iff successful. anything else? not ok. that's the entire rule, periodt π
π REPORTING BUGS π
found a bug? do not gatekeep it, bestie, tell the devs:
- Report bugs 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/
they literally want to hear from you, it's not that deep π«Ά
π 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.
(translation: take it, share it, remix it, just keep the receipts. slay.)
β 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, the command
info shishi
should give you access to the complete manual. iykyk β go read the whole thing, it's worth it πβ¨
and that's the page!! this was shishi_randomize(3) from the shishi manual, version 1.0.3. mwah, ily, go generate some entropy ππ§πΈ
π¦ 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