]> git.eshelyaron.com Git - emacs.git/commit
Sleep less in update-game-score
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Mar 2023 21:38:23 +0000 (14:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Mar 2023 21:42:18 +0000 (14:42 -0700)
commit640fd9b594fa376e6493efbe0cf083e1270ddd3f
tree2659bb3c0bc63db9d7bbd7491e9241a691384f6a
parent2e8cc206f520ec9feb42273703d7afbcb32cd791
Sleep less in update-game-score

This is mostly to avoid interface hassles with time/srand/rand.
* lib-src/update-game-score.c (main): Don’t use ‘srand’ or ‘time’.
(lock_file): Don’t sleep if we unlocked the lock file.  When
sleeping, always just sleep 1 s.  This avoids the need for calling
‘time’ and ‘rand’, the utility of which was dubious anyway.
lib-src/update-game-score.c