Browse Source

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>
maint
Eric Wong 19 years ago committed by Junio C Hamano
parent
commit
72095d5c37
  1. 3
      git-send-email.perl

3
git-send-email.perl

@ -258,8 +258,7 @@ my $message_id_template = "<%s-git-send-email-$message_id_from>"; @@ -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

Loading…
Cancel
Save