Commit 9f72bbbc authored by Marco Mariani's avatar Marco Mariani

slapos-include: replace date +%N with $RANDOM to avoid error with octal syntax

parent 159cdc39
......@@ -199,8 +199,8 @@ function get_free_local_ipv4_network()
return 0
while (( i )) ; do
let seg1=($(date +%N) % 255) 2>&1 > /dev/null
let seg2=($(date +%N) % 255) 2>&1 > /dev/null
let seg1=($RANDOM % 255) 2>&1 > /dev/null
let seg2=($RANDOM % 255) 2>&1 > /dev/null
addr=${seg1}.${seg2}
! IPCONFIG /ALL | grep -q ${addr} &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment