MINOR: tools: Rename ha_generate_uuid
to ha_generate_uuid_v4
This is in preparation of adding support for other UUID versions.
This commit is contained in:
parent
19f8762a98
commit
c6cea750a9
@ -113,7 +113,7 @@ struct flt_ot_runtime_context *flt_ot_runtime_context_init(struct stream *s, str
|
||||
LIST_INIT(&(retptr->contexts));
|
||||
|
||||
uuid = b_make(retptr->uuid, sizeof(retptr->uuid), 0, 0);
|
||||
ha_generate_uuid(&uuid);
|
||||
ha_generate_uuid_v4(&uuid);
|
||||
|
||||
#ifdef USE_OT_VARS
|
||||
/*
|
||||
|
@ -1056,7 +1056,7 @@ static inline void *my_realloc2(void *ptr, size_t size)
|
||||
int parse_dotted_uints(const char *s, unsigned int **nums, size_t *sz);
|
||||
|
||||
/* PRNG */
|
||||
void ha_generate_uuid(struct buffer *output);
|
||||
void ha_generate_uuid_v4(struct buffer *output);
|
||||
void ha_random_seed(const unsigned char *seed, size_t len);
|
||||
void ha_random_jump96(uint32_t dist);
|
||||
uint64_t ha_random64(void);
|
||||
|
@ -249,7 +249,7 @@ static const char *spoe_appctx_state_str[SPOE_APPCTX_ST_END+1] = {
|
||||
static char *
|
||||
generate_pseudo_uuid()
|
||||
{
|
||||
ha_generate_uuid(&trash);
|
||||
ha_generate_uuid_v4(&trash);
|
||||
return my_strndup(trash.area, trash.data);
|
||||
}
|
||||
|
||||
|
@ -4794,7 +4794,7 @@ static int smp_check_uuid(struct arg *args, char **err)
|
||||
static int smp_fetch_uuid(const struct arg *args, struct sample *smp, const char *kw, void *private)
|
||||
{
|
||||
if (args[0].data.sint == 4 || !args[0].type) {
|
||||
ha_generate_uuid(&trash);
|
||||
ha_generate_uuid_v4(&trash);
|
||||
smp->data.type = SMP_T_STR;
|
||||
smp->flags = SMP_F_VOL_TEST | SMP_F_MAY_CHANGE;
|
||||
smp->data.u.str = trash;
|
||||
|
@ -5581,10 +5581,10 @@ void ha_random_jump96(uint32_t dist)
|
||||
}
|
||||
}
|
||||
|
||||
/* Generates an RFC4122 UUID into chunk <output> which must be at least 37
|
||||
/* Generates an RFC4122 version 4 UUID into chunk <output> which must be at least 37
|
||||
* bytes large.
|
||||
*/
|
||||
void ha_generate_uuid(struct buffer *output)
|
||||
void ha_generate_uuid_v4(struct buffer *output)
|
||||
{
|
||||
uint32_t rnd[4];
|
||||
uint64_t last;
|
||||
|
Loading…
Reference in New Issue
Block a user