Home
last modified time | relevance | path

Searched refs:string_from (Results 1 – 25 of 42) sorted by relevance

12

/dports/security/p5-Bytes-Random-Secure-Tiny/Bytes-Random-Secure-Tiny-1.008/t/
H A D22-random_string_from.t43 is( $random->string_from( 'abc', 0 ), '',
44 'string_from() with a quantity of zero returns empty string.' );
46 is( $random->string_from( 'abc' ), '',
47 'string_from() with an undefined quantity defaults to zero.' );
49 is( length( $random->string_from( 'abc', 5 ) ), 5,
50 'string_from(): Requested 5, got 5.' );
55 $bag{ $random->string_from( 'abcdefghijklmnopqrstuvwxyz', 1 ) }++;
59 'string_from() returned all bytes from bag, and only bytes from bag.'
63 'string_from(): No out of range characters in output.' );
66 'string_from():Test validation: took at least 26 tries to hit all 26.' );
[all …]
H A D23-string_from_unicode.t20 my $string = $random->string_from( 'Ѧѧ', $num_octets );
23 'string_from(unicode): Returned proper length string.' );
26 'string_from(unicode): String contained only Ѧѧ characters.' );
33 'string_from(unicode): Ѧ found in output.' );
36 'string_from(unicode): ѧ found in output.' );
H A D20-functions.t12 my @methods = qw/ bytes bytes_hex string_from /;
46 $bag{ $r->string_from( 'abcdefghijklmnopqrstuvwxyz', 1 ) }++;
50 'string_from() returned all bytes from bag, and only bytes from bag.'
55 like( $r->string_from( 'abc', 100 ), qr/^[abc]{100}$/,
56 'string_from() returns only correct digits, and length.' );
H A D26-oo_public.t22 like( $random->string_from('abc', 100 ), qr/^[abc]{100}$/,
23 'string_from() returns proper length and proper string.' );
H A D11-load.t14 can_ok 'Bytes::Random::Secure::Tiny', qw( new irand string_from bytes bytes_hex );
/dports/security/p5-Bytes-Random-Secure/Bytes-Random-Secure-0.29/t/
H A D22-random_string_from.t75 is( $random->string_from( 'abc', 0 ), '',
76 'string_from() with a quantity of zero returns empty string.' );
78 is( $random->string_from( 'abc' ), '',
79 'string_from() with an undefined quantity defaults to zero.' );
81 is( length( $random->string_from( 'abc', 5 ) ), 5,
82 'string_from(): Requested 5, got 5.' );
87 $bag{ $random->string_from( 'abcdefghijklmnopqrstuvwxyz', 1 ) }++;
91 'string_from() returned all bytes from bag, and only bytes from bag.'
95 'string_from(): No out of range characters in output.' );
98 'string_from():Test validation: took at least 26 tries to hit all 26.' );
[all …]
H A D23-string_from_unicode.t21 my $string = $random->string_from( 'Ѧѧ', $num_octets );
24 'string_from(unicode): Returned proper length string.' );
27 'string_from(unicode): String contained only Ѧѧ characters.' );
35 'string_from(unicode): Ѧ found in output.' );
38 'string_from(unicode): ѧ found in output.' );
H A D26-oo_public.t37 like( $random->string_from('abc', 100 ), qr/^[abc]{100}$/,
38 'string_from() returns proper length and proper string.' );
52 my $bytes = $random->string_from( 'abc', -5 );
55 'string_from(): Throws an exception on invalid byte count.' );
/dports/security/p5-CryptX/CryptX-0.075/lib/Crypt/
H A DPRNG.pm18 return $self->string_from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", $len);
21 sub string_from { subroutine
72 sub random_string_from($;$) { return $fetch_RNG->()->string_from(@_) }
/dports/security/p5-Crypt-Perl/Crypt-Perl-0.34/lib/Crypt/Perl/
H A DRNG.pm25 return _get()->string_from('01', $count);
/dports/security/p5-Bytes-Random-Secure-Tiny/Bytes-Random-Secure-Tiny-1.008/lib/Bytes/Random/Secure/
H A DTiny.pod17 my $string = $rng->string_from('abc', 10); # Random string from a, b, & c.
137 =head2 string_from section
139 my $random_string = $rng->string_from('abcdefg', 10);
148 say $rng->string_from('a', 10); # Must always be 'aaaaaaaaaa'
183 This module requires Perl 5.8 or newer. Unicode support in C<string_from> is
253 The C<string_from> method permits the user to pass a "bag" (or source) string
265 is exactly I<why> the C<string_from> method is preferable to a home-grown
267 impact the performance of the C<string_from> method. Any time the length of the
/dports/security/p5-CryptX/CryptX-0.075/lib/Crypt/PRNG/
H A DSober128.pm27 sub random_string_from { return $fetch_RNG->()->string_from(@_) }
H A DYarrow.pm27 sub random_string_from { return $fetch_RNG->()->string_from(@_) }
H A DChaCha20.pm27 sub random_string_from { return $fetch_RNG->()->string_from(@_) }
H A DFortuna.pm27 sub random_string_from { return $fetch_RNG->()->string_from(@_) }
H A DRC4.pm27 sub random_string_from { return $fetch_RNG->()->string_from(@_) }
/dports/math/p5-Math-ProvablePrime/Math-ProvablePrime-0.045/lib/Math/ProvablePrime/
H A DRand.pm35 $rand = Math::BigInt->from_bin( $rng->string_from('01', length $diff_bin) );
/dports/security/p5-Bytes-Random-Secure/Bytes-Random-Secure-0.29/lib/Bytes/Random/
H A DSecure.pm266 sub string_from { subroutine
387 return $fetch_RNG->()->string_from( @_ );
/dports/www/newsboat/newsboat-2.22.1/cargo-crates/cxx-0.5.10/src/symbols/
H A Drust_string.rs19 unsafe extern "C" fn string_from( in string_from() function
/dports/security/p5-Bytes-Random-Secure-Tiny/Bytes-Random-Secure-Tiny-1.008/
H A DChanges18 - Fixed a mistake in the SYNOPSIS. Improved description of string_from.
/dports/security/p5-CryptX/CryptX-0.075/t/
H A Dprng.t54 like($r->string_from("ABC,.-", 45), qr/^[ABC,\,\.\-]+$/, 'string');
H A Dprng_rc4.t54 like($r->string_from("ABC,.-", 45), qr/^[ABC,\,\.\-]+$/, 'string');
H A Dprng_chacha20.t54 like($r->string_from("ABC,.-", 45), qr/^[ABC,\,\.\-]+$/, 'string');
H A Dprng_sober128.t54 like($r->string_from("ABC,.-", 45), qr/^[ABC,\,\.\-]+$/, 'string');
H A Dprng_yarrow.t54 like($r->string_from("ABC,.-", 45), qr/^[ABC,\,\.\-]+$/, 'string');

12