]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - scripts/make_message_id
fix , problem in scripts/quilt-mail
[thirdparty/kernel/stable-queue.git] / scripts / make_message_id
CommitLineData
8d895cd7
GKH
1#!/usr/bin/perl
2
3# we make a "fake" message id by taking the current number
4# of seconds since the beginning of Unix time and tacking on
5# a random number to the end, in case we are called quicker than
6# 1 second since the last time we were called.
7
8my $date = `date "+\%s"`;
9my $hostname = `hostname -d`;
10chomp($date);
11my $pseudo_rand = int (rand(4200));
12$message_id = "$date$pseudo_rand\@$hostname";
13print "$message_id";