1
0
mirror of https://github.com/git/git.git synced 2024-09-22 03:12:08 +02:00

send-email: use built-in time() instead of /bin/date '+%s'

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Eric Wong 2006-03-25 02:43:31 -08:00 committed by Junio C Hamano
parent c150462824
commit 72095d5c37

View File

@ -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