From 72095d5c3779344de13c47a8b1cb163b2d94126e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 25 Mar 2006 02:43:31 -0800 Subject: [PATCH] send-email: use built-in time() instead of /bin/date '+%s' Signed-off-by: Eric Wong Signed-off-by: Junio C Hamano --- git-send-email.perl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/git-send-email.perl b/git-send-email.perl index b220d11cc1..7c27eed7ba 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -258,8 +258,7 @@ my $message_id_template = "<%s-git-send-email-$message_id_from>"; sub make_message_id { - my $date = `date "+\%s"`; - chomp($date); + my $date = time; my $pseudo_rand = int (rand(4200)); $message_id = sprintf $message_id_template, "$date$pseudo_rand"; #print "new message id = $message_id\n"; # Was useful for debugging