Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7377aacd
Commit
7377aacd
authored
Feb 22, 2011
by
antirez
Browse files
seed the random number generator at startup
parent
eece2d52
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
7377aacd
...
...
@@ -916,6 +916,7 @@ void initServer() {
}
if
(
server
.
vm_enabled
)
vmInit
();
srand
(
time
(
NULL
)
^
getpid
());
}
/* Populates the Redis Command Table starting from the hard coded list
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment