gsasl_randomize(3)
β¨ gsasl_randomize β¨
okay bestie, welcome to the gsasl manual β yes, that's the manual name, it's giving very "the whole library lives here" π. This page is about one specific function: gsasl_randomize. Let's get into it π«Ά
πΈ NAME πΈ
gsasl_randomize β it's an API function, periodt π
π SYNOPSIS π
#include <gsasl.h>
int gsasl_randomize(int strong, char * data, size_t datalen);
π¦ ARGUMENTS π¦
int strongβ lowkey the vibe switch: it's0iff the operation should not block, and non-0if you want very strong randomness β¨. (Yes, "iff" β math girlies stay winning.)char * dataβ the output array that gets filled with random data. She's the vessel, she's the main character πsize_t datalenβ the size of that output array. Gotta tell her how much room she's working with, fr fr π
π DESCRIPTION π
Store cryptographically random data of the given size in the buffer you handed over. That's it, that's the whole job, and she does it slayfully β¨
Return value: Returns GSASL_OK iff successful. (Not GSASL_OK? Then it wasn't successful. Iconic logic, no notes π)
π DEPRECATED π
bestie. listen. this one is deprecated. Do not build new stuff on it, I'm begging π
Use gsasl_random() or gsasl_nonce() instead. Those are the upgraded girls, the glow-up versions, the ones who ate π
π REPORTING BUGS π
Found a bug? First of all, not the vibe, but also please tell someone π
- Report bugs to
<bug-gsasl@gnu.org>. - General guidelines for reporting bugs:
http://www.gnu.org/gethelp/ - GNU SASL home page:
http://www.gnu.org/software/gsasl/
π COPYRIGHT π
Copyright Β© 2002-2021 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. (Very generous, very demure, we love a permissive license π«Ά)
π SEE ALSO π
The full documentation for gsasl is maintained as a Texinfo manual. If the info and gsasl programs are properly installed at your site, this command:
info gsasl
should give you access to the complete manual. Obsessed with that, honestly π§
As an alternative you may obtain the manual from:
http://www.gnu.org/software/gsasl/manual/
okay that's the whole page!! this was gsasl version 1.10.0, page gsasl_randomize(3), and yes she's a little vintage but she still serves π
bye bestie, go generate some cryptographically random data responsibly πβ¨π
π¦ where this page comes from
- ubuntu jammy: libgsasl-dev 1.10.0-5 Β· 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