File: 10-name.t

package info (click to toggle)
libcrypt-random-seed-perl 0.03-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 200 kB
  • sloc: perl: 448; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env perl
use strict;
use warnings;
use Crypt::Random::Seed;

use Test::More  tests => 4;

my $bsource = Crypt::Random::Seed->new();
my $bname = $bsource->name();
ok(defined($bname));
ok($bname ne '');

my $nbsource = Crypt::Random::Seed->new(NonBlocking=>1);
my $nbname = $nbsource->name();
ok(defined($nbname));
ok($nbname ne '');

diag "\nDefault     blocking method: $bname\nDefault non-blocking method: $nbname";