Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1063003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:43:05+00:00 2026-05-16T18:43:05+00:00

I have been reading about /dev/urandom , and as far as I can tell,

  • 0

I have been reading about /dev/urandom, and as far as I can tell, /dev/random creates cryptographically random numbers by taking advantage of several events like network packet timings, etc. However, did I understand right that /dev/urandom uses a PRNG, seeded with a number from /dev/random? Or does it just use /dev/random as long as there are bits — and when they run out it falls back to some PRNG with a seed gathered from where?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:43:05+00:00Added an answer on May 16, 2026 at 6:43 pm

    From the urandom manpage:

    The random number generator gathers
    environmental noise from device
    drivers and other sources into an
    entropy pool. The generator also
    keeps an estimate of the number of
    bits of noise in the entropy pool.
    From this entropy pool random numbers
    are created.

    When read, the /dev/random device
    will only return random bytes within
    the estimated number of bits of noise
    in the entropy pool. /dev/random
    should be suitable for uses that need
    very high quality randomness such
    as one-time pad or key
    generation. When the entropy pool
    is empty, reads from /dev/random will
    block
    until additional environmental
    noise is gathered.

    A read from the /dev/urandom device will not block waiting for more
    entropy
    . As a result, if there is
    not sufficient entropy in the entropy
    pool, the returned values are
    theoretically vulnerable to a
    cryptographic attack on the algorithms
    used by the driver. Knowledge of how
    to do this is not available in the
    current unclassified literature, but
    it is theoretically possible that such
    an attack may exist. If this is a
    concern in your application, use
    /dev/random instead.

    both uses a PRNG, though using environmental data and entropy pool makes it astronomically much more difficult to crack the PRNG, and impossible without also gathering the exact same environmental data.

    As a rule of thumb, without specialized expensive hardware that gathers data from, say, quantum events, there is no such thing as true random number generator (i.e. a RNG that generates truly unpredictable number); though for cryptographic purpose, /dev/random or /dev/urandom will suffice (the method used is for a CPRNG, cryptographic pseudo-random number generator).

    The entropy pool and blocking read of /dev/random is used as a safe-guard to ensure the impossibility of predicting the random number; if, for example, an attacker exhausted the entropy pool of a system, it is possible, though highly unlikely with today’s technology, that he can predict the output of /dev/urandom which hasn’t been reseeded for a long time (though doing that would also require the attacker to exhaust the system’s ability to collect more entropies, which is also astronomically improbably).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am relatively new to using TDD and have been reading about mocking objects
I have been reading alot about functional programming and f#. I have a snippet
I've been reading about using ExternalInterface to have Flash communicate with JavaScript. I need
I've been reading about Skip Lists lately. I have a web application that executes
I've been reading about node.js lately. I've seen many articles about how it's really
I've been reading about the module pattern, but everything I read assumes that the
I have a simple RMI 'compute' server application (similar to this ) that accepts
I am trying to do something simple for now. I am making a video
What I want to achieve: Drawing png files with alpha exactly as it appears

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.