Tencent / MMKV

An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, and POSIX.
Other
17.26k stars 1.89k forks source link

fix: Replace `random` with `rand` on Win32 #1367

Closed fallending closed 1 month ago

fallending commented 1 month ago

Cause random function not in Standard C, so here I replace random with rand in Windows.

tencent-adm commented 1 month ago

CLA assistant check
All committers have signed the CLA.

fallending commented 1 month ago

Noticed this isn't a problem in branch dev. So the PR's going to be closed.

lingol commented 1 month ago

Don't bother. Just stick with rand().