[packages/redis] use wider entropy for port random

glen glen at pld-linux.org
Sun May 8 00:24:04 CEST 2016


commit fc0d370ac8a44677871613436262a197eef74640
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 8 01:23:56 2016 +0300

    use wider entropy for port random

 redis.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/redis.spec b/redis.spec
index 483ff3d..b03c35e 100644
--- a/redis.spec
+++ b/redis.spec
@@ -78,7 +78,7 @@ disk.
 %{__sed} -i -e '/    unit\/memefficiency/d' tests/test_helper.tcl
 
 # randomize port number so concurrent builds doesn't break
-port=$((21110 + ${RANDOM:-$$} % 10))
+port=$((21110 + ${RANDOM:-$$} % 1000))
 sed -i -e "s/set ::port 21111/set ::port $port/" tests/test_helper.tcl
 
 # use system jemalloc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/redis.git/commitdiff/fc0d370ac8a44677871613436262a197eef74640



More information about the pld-cvs-commit mailing list