KRB5\_GENERATE\_RANDOM\_BLOCK(3) Library Functions Manual KRB5\_GENERATE\_RANDOM\_BLOCK(3)

# [NAME](#NAME)

`krb5_generate_random_block` — Kerberos 5 random functions

# [LIBRARY](#LIBRARY)

Kerberos 5 Library (libkrb5, -lkrb5)

# [SYNOPSIS](#SYNOPSIS)

`#include <krb5.h>`

`void`  
`krb5_generate_random_block`(`void *buf`, `size_t len`);

# [DESCRIPTION](#DESCRIPTION)

[`krb5_generate_random_block`](#krb5_generate_random_block)() generates a cryptographically strong pseudo-random block into the buffer `buf` of length `len`.

# [SEE ALSO](#SEE_ALSO)

[krb5(3)](/man/os/heimdal/krb5.3), [krb5.conf(5)](/man/os/heimdal/krb5.conf.5)

March 21, 2004 HEIMDAL

---

Document: krb5_generate_random_block(3) from heimdal 7.8.0-r52 (Chainguard OS)
Source: https://github.com/heimdal/heimdal
