|
-
December 13th, 2000, 09:43 AM
#1
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.
-
December 13th, 2000, 10:00 AM
#2
-
December 13th, 2000, 10:16 AM
#3
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.
-
December 13th, 2000, 10:51 AM
#4
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.
-
December 13th, 2000, 11:42 AM
#5
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
-
Forum Rules
|
|