MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / randominit

Function randominit

sql/password.c:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80*/
81
82void randominit(struct rand_struct *rand_st, ulong seed1, ulong seed2)
83{ /* For mysql 3.21.# */
84#ifdef HAVE_purify
85 memset(rand_st, 0, sizeof(*rand_st)); /* Avoid UMC varnings */
86#endif
87 rand_st->max_value= 0x3FFFFFFFL;
88 rand_st->max_value_dbl=(double) rand_st->max_value;
89 rand_st->seed1=seed1%rand_st->max_value ;
90 rand_st->seed2=seed2%rand_st->max_value;
91}
92
93/*
94 Generate binary hash from raw text string

Callers 6

val_strMethod · 0.85
init_server_componentsFunction · 0.85
initMethod · 0.85
scramble_323Function · 0.85
check_scramble_323Function · 0.85
THDMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected