• Marc Cornellà's avatar
    z: refresh $RANDOM's value outside subshell · 052493b1
    Marc Cornellà authored
    This change references `$RANDOM` outside the subshell to refresh it for the
    next subshell invocation. Otherwise, subsequent runs of the function get the
    same value and, if run simultaneously, they may clobber each others' temp .z
    files.
    
    This is due to how zsh distributes RANDOM values when running inside a
    subshell:
    
      subshells that reference RANDOM will result in identical pseudo-random
      values unless the value of RANDOM is referenced or seeded in the parent
      shell in between subshell invocations
    
    See: http://zsh.sourceforge.net/Doc/Release/Parameters.html#index-RANDOM
    052493b1
Name
Last commit
Last update
cache Loading commit data...
custom Loading commit data...
lib Loading commit data...
log Loading commit data...
plugins Loading commit data...
templates Loading commit data...
themes Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
README.md Loading commit data...
oh-my-zsh.sh Loading commit data...