Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

crypt::random::source::base(3pm) [debian man page]

Crypt::Random::Source::Base(3pm)			User Contributed Perl Documentation			  Crypt::Random::Source::Base(3pm)

NAME
Crypt::Random::Source::Base - Abstract base class for Crypt::Random::Source classes SYNOPSIS
use Moose; extends qw(Crypt::Random::Source::Base); DESCRIPTION
This is an abstract base class. In the future it will be a role. METHODS
get $n, %args Gets $n random bytes and returns them as a string. This method may produce fatal errors if the source was unable to provide enough data. read $buf, $n, [ $off ] This method is cannibalized from IO::Scalar. It provides an IO::Handle work-alike. Note that subclasses override this to operate on a real handle directly if available. seed @stuff On supporting sources this method will add @stuff, whatever it may be, to the random seed. Some sources may not support this, so be careful. available This is a class method, such that when it returns true calling "new" without arguments on the class should provide a working source of random data. This is use by Crypt::Random::Source::Factory. rank This is a class method, with some futz value for a ranking, to help known good sources be tried before known bad (slower, less available) sources. get_data %Params Provided for compatibility with Crypt::Random AUTHOR
Yuval Kogman <nothingmuch@woobling.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Yuval Kogman. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2011-01-05 Crypt::Random::Source::Base(3pm)

Check Out this Related Man Page

Crypt::Random::Source::Factory(3pm)			User Contributed Perl Documentation		       Crypt::Random::Source::Factory(3pm)

NAME
Crypt::Random::Source::Factory - Load and instantiate sources of random data SYNOPSIS
use Crypt::Random::Source::Factory; my $f = Crypt::Random::Source::Factory->new; my $strong = $f->get_strong; my $weak = $f->get_weak; my $any = $f->get; DESCRIPTION
This class implements a loading and instantiation factory for Crypt::Random::Source objects. If $ENV{CRYPT_RANDOM_NOT_PLUGGABLE} is set then only a preset list of sources will be tried. Otherwise Module::Find will be used to locate any installed sources, and use the first available one. METHODS
get %args Instantiate any random source, passing %args to the constructor. The "type" argument can be "weak", "strong" or "any". get_weak %args get_strong %args Instantiate a new weak or strong random source. AUTHOR
Yuval Kogman <nothingmuch@woobling.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Yuval Kogman. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2011-01-05 Crypt::Random::Source::Factory(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. Programming

Embedded programming

Anyone know any good sources (books, urls, etc) for learning embedded programming, for example with Tornado from Wind River? (3 Replies)
Discussion started by: TioTony
3 Replies

2. Shell Programming and Scripting

Random Line

I am trying to build a script written in ksh93 that pulls a random line out of each of four text files. Since the files are all different, I can't think of a way to take the number of lines (in one case, let's say 50), then randomly pick a line out, making sure that all lines have a fair... (8 Replies)
Discussion started by: LivinFree
8 Replies

3. UNIX for Dummies Questions & Answers

Trivial Unix Architecture question

Hi, I am becoming very curious as to why viruses attach only Windows system and not any UNIX and Linux. Does that has to do something with the architecture or something else. (11 Replies)
Discussion started by: vibhor_agarwali
11 Replies

4. Programming

C Lessons

I started wrting c lessons for absoulute begginers to advanced users, I think material can be considered quality, and my students learn programming with this stuff. If you wish feel free to start reading it here: www.visualcmaniac.com its only 5 lessons for now so maybe could be easier for... (4 Replies)
Discussion started by: vurdlak
4 Replies

5. Programming

Developing Open Source tools

Hi Gurus, I am very much interested in developing and publishing a small piece of open source code which would be the best place to start off. I am just a beginner in unix ,c. Please provide me some suggestions. Thanks. (3 Replies)
Discussion started by: ennstate
3 Replies

6. Shell Programming and Scripting

TCP/IP Source

can u tell me from where do i get TCP/IP Source code plz. (2 Replies)
Discussion started by: pradeep83rawat
2 Replies

7. Shell Programming and Scripting

Crypt command

Hi all, I want the source code similar to crypt command in unix. Thanks for the reply (4 Replies)
Discussion started by: ratna
4 Replies

8. Shell Programming and Scripting

Random Numbers - Perl

Hi Guys I have a script to find Ranomd numbers. But I want to make the file to produce more random. Could u guys help me plz. In this Script I have the code that generates random in for loop and the range I have specified in my %chromlength input and out put will be like this chrno start end... (3 Replies)
Discussion started by: repinementer
3 Replies

9. Programming

Random Access Iterator Error

I am unable to resolve the below code compilation issue: class A { public: int x; }; void sort_A(TArray<A> &_Atype) { std::stable_sort (_Atype.begin(), _Atype.end()); } bool operator< (const A & _a1, const A & _a2) { return _a1.x < _a2.x; } When we compile using gcc 4.1.2... (4 Replies)
Discussion started by: uunniixx
4 Replies

10. UNIX for Dummies Questions & Answers

LPI practice work

Hello everyone! Im Andrew and i'm studying for LPI 1, 2 Does anybody knows where can i find good and actual stuff for practice? if it is posible for free :-\ maybe testking or stuff like that. I want to take the first examn but im not sure if i have to study so much more. It is true... (4 Replies)
Discussion started by: andriusman
4 Replies

11. Web Development

Random - Any help decoding obfuscated code?

I have this following file and I would quite like to get it decoded - any help / advice is appreciated. I would like to know how to decrypt it, however if someone is able to do it for me I would be equally grateful. <?php //Obfuscation provided by FOPO - Free Online PHP Obfuscator v1.2:... (6 Replies)
Discussion started by: mcclunyboy
6 Replies

12. Shell Programming and Scripting

Random Variable

Hi, Could you please let me know what the following code does, I know that it means generating random numbers, however not sure what is the entire purpose. R=$(($RANDOM % 2)) delay=$(($RANDOM % 10)) if then TEXT='X' else ... (3 Replies)
Discussion started by: susankoperna1
3 Replies

13. Shell Programming and Scripting

Source code compilation

Need assistance in Source code compilation . When installing a software compiling a source code . Whatever the output that prints on the screen i want to log it into a file. How can i see output and store the output to file ./configure make make install Is there other way of seeing output... (5 Replies)
Discussion started by: ajayram_arya
5 Replies

14. Homework & Coursework Questions

Random numbers

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! Write a shell script that will take the sum of two random number? Ex: Random n1 +Random n2 = result i tries to write it but i had some dufficulties ... (3 Replies)
Discussion started by: renegade755
3 Replies

15. Shell Programming and Scripting

Generating a Random String of 'n' length

Hi, How can I generate a string of random characters (alpha+numeric) of a particular length ? For e.g. for n=5, output = 'kasjf' n=10, output = 'hedbcd902k' Also, please let me know if random (valid) dates could also be generated. Thanks (7 Replies)
Discussion started by: rishigc
7 Replies