You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
why should we depend on both of rand(...) and radom(...), shall we just select one of them
is it necessary to call time(...) cuz we have got the value of time in seconds via gettimeofday(...), maybe we could save the of cost of calling time(...)
Hi,
As the src code in https://github.com/redis/redis/blob/unstable/src/server.c#L6941-L6943.
I have little questions for help:
rand(...)
andradom(...)
, shall we just select one of themtime(...)
cuz we have got the value of time in seconds viagettimeofday(...)
, maybe we could save the of cost of callingtime(...)
to be short, the expect as below:
or
i don't konw if it is okay.
The text was updated successfully, but these errors were encountered: