feat(lv_math): add lv_rand_set_seed api (#5013)

This commit is contained in:
Benign X
2023-12-14 21:22:54 +08:00
committed by GitHub
parent cad4a4529c
commit 492a474f5f
3 changed files with 12 additions and 1 deletions

View File

@@ -87,7 +87,7 @@ static inline void lv_global_init(lv_global_t * global)
global->style_last_custom_prop_id = (uint32_t)_LV_STYLE_LAST_BUILT_IN_PROP;
global->area_trans_cache.angle_prev = INT32_MIN;
global->event_last_register_id = _LV_EVENT_LAST;
global->math_rand_seed = 0x1234ABCD;
lv_rand_set_seed(0x1234ABCD);
#if defined(LV_DRAW_SW_SHADOW_CACHE_SIZE) && LV_DRAW_SW_SHADOW_CACHE_SIZE > 0
global->sw_shadow_cache.cache_size = -1;