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>
Eric Wong committed
Mar 25, 2006 at 02:43 UTC
72095d5c3779344de13c47a8b1cb163b2d94126e
1 file changed
+1
-2
git-send-email.perl
+1
-2
@@ -258,8 +258,7 @@ my $message_id_template = "<%s-git-send-email-$message_id_from>";
258
259
sub make_message_id
260
{
261
- my $date = `date "+\%s"`;
262
- chomp($date);
261
+ my $date = time;
262
my $pseudo_rand = int (rand(4200));
263
$message_id = sprintf $message_id_template, "$date$pseudo_rand";
264
#print "new message id = $message_id\n"; # Was useful for debugging