KCAPI_RNG_GENERATE(3)
β¨ NAME β¨
okay so bestie, welcome to kcapi_rng_generate(3) π β this is the programming interface page for a function that does exactly one iconic thing: it generates a random number. that's it. that's the whole job. main character energy, zero drama. π
πΈ SYNOPSIS πΈ
ssize_t kcapi_rng_generate(struct kcapi_handle * handle,
uint8_t * buffer, size_t len);
likeβ¦ look at her. three little params and a ssize_t return. she's not complicated, she's just β¨efficientβ¨. π
π¦ ARGUMENTS π¦
handleβ[in]this is your cipher handle, aka the lil VIP pass you already got from the library. hand it over, no questions asked. π«Άbufferβ[out]this is the empty cup you're handing her, and she fills it with the random number. you provide the space, she brings the chaos (the good kind). πlenβ[in]how big is that buffer? tell her, because she's not out here guessing. it's literally the buffer length. π
π DESCRIPTION π
so like, on success? she returns the size of the random number generated. that's the good ending, bestie. π
but if things go sideways β if the data cannot be obtained β you get back -EIO. that's the error code, and it's giving "no thoughts, just failure" π. not a vibe, but at least she tells you fr fr.
π AUTHOR π
- Stephan Mueller
<smueller@chronox.de>β Author.
yeah, the author. the person who actually wrote this. we love and respect them. π«‘π
π COPYRIGHT π
libkcapi Manual 1.5.0 Β· July 2025 Β· KCAPI_RNG_GENERATE(3)
and that's the whole page, bestie β¨ random numbers generated, flags memorised, vibes immaculate. go forth and kcapi_rng_generate responsibly π§π periodt.
π¦ where this page comes from
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms