For the complete documentation index, see llms.txt. This page is also available as Markdown.

THD RND Service

Plugin API reference: THD RND Service. Generated from the MariaDB server headers by doxygen and moxygen.

Plugin API / Services for Plugins / Plugin Services

Access to the thd-local random number generator.

It's preferable over the global one, because concurrent threads can generate random numbers without fighting each other over the access to the shared rnd state.

Classes

Name
Description

Macros

Name
Description

Generate string of printable random characters of requested length.


thd_rnd

#define thd_rnd(thd, thd) thd_rnd_service->thd_rnd_ptr(thd)

Defined in service_thd_rnd.h:52


thd_create_random_password

#define thd_create_random_password(thd, to, length, thd, to, length) thd_rnd_service->thd_c_r_p_ptr(thd,to,length)

Defined in service_thd_rnd.h:61

Generate string of printable random characters of requested length.

Parameters

Parameter
Type
Description

thd

User thread connection handle

to

Buffer for generation; must be at least length+1 bytes long; result string is always null-terminated

length

How many random characters to put in buffer

thd

User thread connection handle

to

Buffer for generation; must be at least length+1 bytes long; result string is always null-terminated

length

How many random characters to put in buffer

Variables

Return
Name
Description

thd_rnd_service

Type: struct thd_rnd_service_st *

Defined in service_thd_rnd.h:49

Class Definitions

thd_rnd_service_st

Defined in service_thd_rnd.h:46

Public Attributes

Return
Name
Description

thd_rnd_ptr

Defined in service_thd_rnd.h:47


thd_c_r_p_ptr

Defined in service_thd_rnd.h:48

This page is licensed: GPLv2

spinner

Last updated

Was this helpful?