random/urandom
Results 1 to 5 of 5

Thread: random/urandom

  1. #1
    Join Date
    Nov 2000
    Location
    buenos aires
    Posts
    335

    random/urandom

    hi there, last night i found out 2 strange files, `random` and `urandom`,both of them in the /dev directory.
    they appear, under a ls -l, listed with a size of `1,`; i never saw that type of nomenklature before, and when i tried to do a `more` on then, the terminal freezes until i hit `crtl z`, the `file` program reports `character special`. my question is, what are those files? can i redirect they output, if they produce any, to see the computer produce random data, is that so?.
    thanks in advance.

  2. #2
    Join Date
    Feb 2000
    Location
    26.03°N 80.14°W
    Posts
    9,410
    Vernon Frazee, Microsoft MVP (Windows - Shell/User)

    Defenses Up!
    Tip: When prompted for a password, give an incorrect one first. A phishing site will accept it; a legitimate one won't.


    Inside Spyware: A Guide to Finding, Removing and Preventing Online Pests


    If you don't keep up with security fixes, your computer|network won't be yours for long.

  3. #3
    Join Date
    Nov 2000
    Location
    buenos aires
    Posts
    335
    thanks vernon, perhaps many of the questions i post here a truly basic and only a man page away, but, i don´t know why, i can´t read my man pages, perhaps my distributions doesn´t include them...
    nevertheless, i`m totally surprised by the speed of the answers of this forum, thanks.

  4. #4
    Join Date
    Mar 2000
    Location
    Elyria, Ohio - USA
    Posts
    2,075
    So we meet again.

    /dev/random and /dev/urandom are kernel random number source devices. An example of a use for /dev/random is in the use of making a password as:

    Code:
    head -c8 /dev/random | uuencode -m - | sed -n '2s/=*$//;2p'
    Hope this helps. -mk

    ------------------
    If it ain't broke, fix it till it is.
    If it ain't broke,
    Fix it till it is.

  5. #5
    Join Date
    Nov 2000
    Location
    buenos aires
    Posts
    335
    not only helps, but it expands my mind, linux is the greatest an most interesting thing that i found/learned in computing, so far; thanks a lot mike onefourseven.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •