File: SomeRandPackage.pm

package info (click to toggle)
libtest-mockrandom-perl 1.01-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 256 kB
  • sloc: perl: 326; makefile: 2
file content (13 lines) | stat: -rwxr-xr-x 173 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
package SomeRandPackage;

sub new {
    my $class = shift;
    return bless( {}, ref($class) || $class );
}

sub rand(;$) {
    my $rnd = CORE::rand;
    return $rnd;
}

1;