Skip to content

Commit e555c4b

Browse files
committed
Use date+pid instead of random number
1 parent a9653df commit e555c4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ruby-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ if [ -z "$PREFIX_PATH" ]; then
109109
usage
110110
fi
111111

112-
SEED="$$-${RANDOM}"
112+
SEED="$(date "+%Y%m%d%H%M%S").$$"
113113
LOG_PATH="/tmp/ruby-build.${SEED}.log"
114114
TEMP_PATH="/tmp/ruby-build.${SEED}"
115115
RUBY_BIN="${PREFIX_PATH}/bin/ruby"

0 commit comments

Comments
 (0)