1SD_ID128_RANDOMIZE(3)         sd_id128_randomize         SD_ID128_RANDOMIZE(3)
2
3
4

NAME

6       sd_id128_randomize - Generate 128-bit IDs
7

SYNOPSIS

9       #include <systemd/sd-id128.h>
10
11       int sd_id128_randomize(sd_id128_t *ret);
12

DESCRIPTION

14       sd_id128_randomize() generates a new randomized 128-bit ID and returns
15       it in ret. Every invocation returns a new randomly generated ID. This
16       uses the /dev/urandom kernel random number generator.
17
18       Note that sd_id128_randomize() always returns a UUID v4-compatible ID.
19
20       For more information about the "sd_id128_t" type, see sd-id128(3).
21
22       journalctl(1)'s --new-id option may be used as a command line front-end
23       for sd_id128_randomize().
24

RETURN VALUE

26       The call returns 0 on success (in which case ret is filled in), or a
27       negative errno-style error code.
28

NOTES

30       The sd_id128_randomize() interface is available as a shared library,
31       which can be compiled and linked to with the "libsystemd" pkg-config(1)
32       file.
33

SEE ALSO

35       systemd(1), sd-id128(3), machine-id(5), random(4),
36       sd_id128_get_machine(3)
37
38
39
40systemd 219                                              SD_ID128_RANDOMIZE(3)
Impressum