1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-28 12:59:41 +01: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 @@ 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