Skip to content

Commit

Permalink
send-email: use built-in time() instead of /bin/date '+%s'
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Eric Wong authored and Junio C Hamano committed Mar 26, 2006
1 parent c150462 commit 72095d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,7 @@ sub gitvar_ident {

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
Expand Down

0 comments on commit 72095d5

Please sign in to comment.