{
    "mode": "perldoc",
    "parameter": "Crypt::PRNG::Yarrow",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Crypt%3A%3APRNG%3A%3AYarrow/json",
    "generated": "2026-06-09T14:43:00Z",
    "synopsis": "### Functional interface:\nuse Crypt::PRNG::Yarrow qw(randombytes randombyteshex randombytesb64 randomstring randomstringfrom rand irand);\n$octets = randombytes(45);\n$hexstring = randombyteshex(45);\n$base64string = randombytesb64(45);\n$base64urlstring = randombytesb64u(45);\n$alphanumericstring = randomstring(30);\n$string = randomstringfrom('ACGT', 64);\n$floatingpointnumber0to1 = rand;\n$floatingpointnumber0to88 = rand(88);\n$unsigned32bitint = irand;\n### OO interface:\nuse Crypt::PRNG::Yarrow;\n$prng = Crypt::PRNG::Yarrow->new;\n#or\n$prng = Crypt::PRNG::Yarrow->new(\"some data used for seeding PRNG\");\n$octets = $prng->bytes(45);\n$hexstring = $prng->byteshex(45);\n$base64string = $prng->bytesb64(45);\n$base64urlstring = $prng->bytesb64u(45);\n$alphanumericstring = $prng->string(30);\n$string = $prng->stringfrom('ACGT', 64);\n$floatingpointnumber0to1 = rand;\n$floatingpointnumber0to88 = rand(88);\n$unsigned32bitint = irand;",
    "sections": {
        "NAME": {
            "content": "Crypt::PRNG::Yarrow - Cryptographically secure PRNG based on Yarrow algorithm\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "### Functional interface:\nuse Crypt::PRNG::Yarrow qw(randombytes randombyteshex randombytesb64 randomstring randomstringfrom rand irand);\n\n$octets = randombytes(45);\n$hexstring = randombyteshex(45);\n$base64string = randombytesb64(45);\n$base64urlstring = randombytesb64u(45);\n$alphanumericstring = randomstring(30);\n$string = randomstringfrom('ACGT', 64);\n$floatingpointnumber0to1 = rand;\n$floatingpointnumber0to88 = rand(88);\n$unsigned32bitint = irand;\n\n### OO interface:\nuse Crypt::PRNG::Yarrow;\n\n$prng = Crypt::PRNG::Yarrow->new;\n#or\n$prng = Crypt::PRNG::Yarrow->new(\"some data used for seeding PRNG\");\n\n$octets = $prng->bytes(45);\n$hexstring = $prng->byteshex(45);\n$base64string = $prng->bytesb64(45);\n$base64urlstring = $prng->bytesb64u(45);\n$alphanumericstring = $prng->string(30);\n$string = $prng->stringfrom('ACGT', 64);\n$floatingpointnumber0to1 = rand;\n$floatingpointnumber0to88 = rand(88);\n$unsigned32bitint = irand;\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Provides an interface to the Yarrow based pseudo random number generator\n\nAll methods and functions are the same as for Crypt::PRNG.\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "randombytes\nSee \"randombytes\" in Crypt::PRNG.\n\nrandombyteshex\nSee \"randombyteshex\" in Crypt::PRNG.\n\nrandombytesb64\nSee \"randombytesb64\" in Crypt::PRNG.\n\nrandombytesb64u\nSee \"randombytesb64u\" in Crypt::PRNG.\n\nrandomstring\nSee \"randomstring\" in Crypt::PRNG.\n\nrandomstringfrom\nSee \"randomstringfrom\" in Crypt::PRNG.\n\nrand\nSee \"rand\" in Crypt::PRNG.\n\nirand\nSee \"irand\" in Crypt::PRNG.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "new\nSee \"new\" in Crypt::PRNG.\n\nbytes\nSee \"bytes\" in Crypt::PRNG.\n\nbyteshex\nSee \"byteshex\" in Crypt::PRNG.\n\nbytesb64\nSee \"bytesb64\" in Crypt::PRNG.\n\nbytesb64u\nSee \"bytesb64u\" in Crypt::PRNG.\n\nstring\nSee \"string\" in Crypt::PRNG.\n\nstringfrom\nSee \"stringfrom\" in Crypt::PRNG.\n\ndouble\nSee \"double\" in Crypt::PRNG.\n\nint32\nSee \"int32\" in Crypt::PRNG.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "*   Crypt::PRNG\n\n*   <https://en.wikipedia.org/wiki/Yarrowalgorithm>\n",
            "subsections": []
        }
    },
    "summary": "Crypt::PRNG::Yarrow - Cryptographically secure PRNG based on Yarrow algorithm",
    "flags": [],
    "examples": [],
    "see_also": []
}