~ubuntu-branches/ubuntu/utopic/spamassassin/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/Mail/SpamAssassin/Locker.pm

  • Committer: Bazaar Package Importer
  • Author(s): Noah Meyerhans
  • Date: 2010-01-26 22:53:12 UTC
  • mfrom: (1.1.13 upstream) (5.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100126225312-wkftb10idc1kz2aq
Tags: 3.3.0-1
* New upstream version.
* Switch to dpkg-source 3.0 (quilt) format

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
use strict;
21
21
use warnings;
22
22
use bytes;
 
23
use re 'taint';
23
24
use Fcntl;
 
25
use Time::HiRes ();
24
26
 
25
27
use Mail::SpamAssassin;
26
28
 
68
70
 
69
71
sub jittery_one_second_sleep {
70
72
  my ($self) = @_;
71
 
  select(undef, undef, undef, (rand(1.0) + 0.5));
 
73
  Time::HiRes::sleep(rand(1.0) + 0.5);
72
74
}
73
75
 
74
76
###########################################################################