Skip to content

Commit 709edda

Browse files
committed
Better to use a core module
1 parent f5bc24b commit 709edda

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cpanfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on develop => sub {
2323
on test => sub {
2424
requires 'version';
2525
requires 'Tie::IxHash';
26-
requires 'Crypt::URandom';
26+
requires 'Digest::SHA';
2727
};
2828

2929
feature 'test_sqlite', 'Test SQLite' => sub {

t/10-resultset-blob.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use lib 't/lib';
88
$Data::ObjectDriver::DEBUG = 0;
99
use Test::More;
1010
use DodTestUtil;
11-
BEGIN { eval { require Crypt::URandom; 1 } or plan skip_all => 'requires Crypt::URandom' }
11+
BEGIN { eval { require Digest::SHA; 1 } or plan skip_all => 'requires Digest::SHA' }
1212

1313
BEGIN { DodTestUtil->check_driver }
1414

@@ -26,7 +26,7 @@ $wine->name("Saumur Champigny, Le Grand Clos 2001");
2626
$wine->rating(4);
2727

2828
## generate some binary data (SQL_BLOB / MEDIUMBLOB)
29-
my $binary = Crypt::URandom::urandom(300);
29+
my $binary = Digest::SHA::sha1("binary");
3030
$wine->content($binary);
3131
ok($wine->save, 'Object saved successfully');
3232

0 commit comments

Comments
 (0)