Created
October 1, 2015 19:31
-
-
Save markuman/6fc5011710385d2f0caf to your computer and use it in GitHub Desktop.
Nine Nine Nine 2/4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1:6379> eval 'local seed = redis.call("TIME") return seed[1] .. "." .. seed[2]' 0 | |
"1443727915.340182" | |
127.0.0.1:6379> eval 'local seed = redis.call("TIME") math.randomseed(tonumber(seed[1] .. "." .. seed[2])) return string.format("%f", math.random())' 0 | |
"0.743658" | |
127.0.0.1:6379> eval 'local seed = redis.call("TIME") math.randomseed(tonumber(seed[1] .. "." .. seed[2])) return string.format("%f", math.random())' 0 | |
"0.580878" | |
127.0.0.1:6379> eval 'local seed = redis.call("TIME") math.randomseed(tonumber(seed[1] .. "." .. seed[2])) return string.format("%f", math.random())' 0 | |
"0.451681" | |
-- local seed = redis.call("TIME") | |
-- math.randomseed(tonumber(seed[1] .. "." .. seed[2])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment