diff options
author | friendica <info@friendica.com> | 2013-12-04 23:54:46 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-12-04 23:54:46 -0800 |
commit | cc1e906825dd30f74d0a30190a7dd2a26d6b1642 (patch) | |
tree | 9217329af3b4751d921ffa125be1907377ea9cea /include | |
parent | 04f61dd4a1e2d44291265855df68521933bedb04 (diff) | |
download | volse-hubzilla-cc1e906825dd30f74d0a30190a7dd2a26d6b1642.tar.gz volse-hubzilla-cc1e906825dd30f74d0a30190a7dd2a26d6b1642.tar.bz2 volse-hubzilla-cc1e906825dd30f74d0a30190a7dd2a26d6b1642.zip |
generate a small amount of entropy to avoid duplicate notifications from essentially simultaneous deliveries.
Diffstat (limited to 'include')
-rw-r--r-- | include/enotify.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/enotify.php b/include/enotify.php index 808efef51..011a1cde2 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -4,6 +4,10 @@ function notification($params) { logger('notification: entry', LOGGER_DEBUG); + // throw a small amount of entropy into the system to breakup duplicates arriving at the same precise instant. + usleep(mt_rand(0,10000)); + + $a = get_app(); |