tavoid using Tomb's PID in temp files and double the random #150 - tomb - the crypto undertaker
 (HTM) git clone git://parazyd.org/tomb.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 3416ad2d2c50f629ea242d326729ff8179960a73
 (DIR) parent 372a1a1cf8fcf4d96d41df0b10c789f6a5e6b7c6
 (HTM) Author: Jaromil <jaromil@dyne.org>
       Date:   Mon, 20 Oct 2014 16:34:45 +0200
       
       avoid using Tomb's PID in temp files and double the random #150
       
       Diffstat:
         M tomb                                |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/tomb b/tomb
       t@@ -56,7 +56,7 @@ QRENCODE=1
        MOUNTOPTS="rw,noatime,nodev"
        
        # prefix for temporary files
       -TMPPREFIX="/dev/shm/$$.$RANDOM."
       +TMPPREFIX="/dev/shm/$RANDOM.$RANDOM."
        
        # makes glob matching case insensitive
        unsetopt CASE_MATCH
       t@@ -145,7 +145,7 @@ check_shm() {
        
            # setup a special env var for zsh to create temp files that will
            # then be deleted at the exit of each function using them.
       -    TMPPREFIX="$SHMPREFIX/$$.$RANDOM."
       +    TMPPREFIX="$SHMPREFIX/$RANDOM.$RANDOM."
            return 0
        }