]>
git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - scripts/make_message_id
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.
8 my $date = `date "+\%s"`;
9 my $hostname = `hostname -d`;
11 my $pseudo_rand = int (rand(4200));
12 $message_id = "$date$pseudo_rand\@$hostname";