From 4e5e17343dabd05e6ad96a78a8de1643a8829467 Mon Sep 17 00:00:00 2001 From: kanoi Date: Wed, 13 Aug 2014 17:00:34 +1000 Subject: [PATCH] php - add a partial timestamp to the outgoing id --- pool/db.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pool/db.php b/pool/db.php index 6ec73703..14a939c3 100644 --- a/pool/db.php +++ b/pool/db.php @@ -50,7 +50,8 @@ function msgEncode($cmd, $id, $fields) { global $send_sep, $fld_sep, $val_sep; - $msg = $cmd . $send_sep . $id; + $t = time() % 10000; + $msg = $cmd . $send_sep . $id.$t; $first = true; foreach ($fields as $name => $value) {