09-23-2009
Tapes are linear devices. If you need to do random reads, a random I/O device may suite you better.
10 More Discussions You Might Find Interesting
1. Linux
Hi,
Will someone help in giving the clue to installating Travan Tape drive on Redhat 8.0
Kayode (1 Reply)
Discussion started by: kayode
1 Replies
2. Solaris
Well I have just added new tape drive to my server (lto)
However I am getting few errors in using it. I have checked status with
#iostat -En : giving me few hard errors, few soft errors and execution error.
Also tape status is not visible as "no sense" its coming as "no additional sense".
I... (5 Replies)
Discussion started by: saurabh84g
5 Replies
3. Solaris
Hi all,
I have solaris 10 sparc running and working very well
but i have problem with external SCSI tape drive DAT 72 problem
it seems to me the tape drive is manufactured by SUN microsystems
when i ran ls -l /dev/rmt/0
it reveals the following output
bash-3.00# mt -f /dev/rmt/0... (2 Replies)
Discussion started by: h@foorsa.biz
2 Replies
4. SCO
Looking for specifically naming convention for a tape device for SCO Unix
What full system backup command should I use for SCO UNIX (1 Reply)
Discussion started by: jedimaster
1 Replies
5. AIX
Hi everyone, I have a ibm p65 server with an internal DAT 72 tape drive. When I go to press the eject button the second light will blink for several minutes then stop. If I issue a
tctl -f /dev/rmt0 status it tells me its available and gives back other information.
Now if I try this
tctl -f... (2 Replies)
Discussion started by: bsdtux
2 Replies
6. Solaris
hi, was wondering if there is a problem with the patches, and if we wish to restore everything back to square one, how should we go about using ufsrestore from a DAT tape of ufsdump backup data ? (1 Reply)
Discussion started by: Exposure
1 Replies
7. AIX
I have an AIX server with a tape Library residing on it. I intend to restore the data backed up to the tape on Red Hat Enterprise Linux 5.
First , i would want to view the contents of the tape on RHEL 5(x86) but seems to be giving an input output error.
I observed that if i backup to tape on... (1 Reply)
Discussion started by: optimum
1 Replies
8. Red Hat
What is the command that can be used to open or view the .dat file in linux?
Unable to read the contents of .dat file. (7 Replies)
Discussion started by: Rupaa
7 Replies
9. UNIX for Dummies Questions & Answers
I have an AIX server with a tape Library residing on it. I intend to restore the data backed up to the tape on Red Hat Enterprise Linux 5.
First , i would want to view the contents of the tape on RHEL 5(x86) but seems to be giving an input output error.
I observed that if i backup to tape on... (20 Replies)
Discussion started by: optimum
20 Replies
10. Shell Programming and Scripting
How to use 'ls' command to list files like *.dat, not *.*.dat (5 Replies)
Discussion started by: pmcginni777
5 Replies
LEARN ABOUT DEBIAN
arc4rand
RANDOM(9) BSD Kernel Developer's Manual RANDOM(9)
NAME
arc4rand, arc4random, random, read_random, srandom -- supply pseudo-random numbers
SYNOPSIS
#include <sys/libkern.h>
void
srandom(u_long seed);
u_long
random(void);
void
arc4rand(void *ptr, u_int length, int reseed);
u_int32_t
arc4random(void);
#include <sys/random.h>
int
read_random(void *buffer, int count);
DESCRIPTION
The random() function will by default produce a sequence of numbers that can be duplicated by calling srandom() with '1' as the seed. The
srandom() function may be called with any arbitrary seed value to get slightly more unpredictable numbers. It is important to remember that
the random() function is entirely predictable, and is therefore not of use where knowledge of the sequence of numbers may be of benefit to an
attacker.
The arc4rand() function will return very good quality random numbers, slightly better suited for security-related purposes. The random num-
bers from arc4rand() are seeded from the entropy device if it is available. Automatic reseeds happen after a certain timeinterval and after
a certain number of bytes have been delivered. A forced reseed can be forced by passing a non-zero value in the reseed argument.
The read_random() function is used to return entropy directly from the entropy device if it has been loaded. If the entropy device is not
loaded, then the buffer is filled with output generated by random(). The buffer is filled with no more than count bytes. It is advised that
read_random() is not used; instead use arc4rand()
All the bits generated by random(), arc4rand() and read_random() are usable. For example, 'random()&01' will produce a random binary value.
The arc4random() is a convenience function which calls arc4rand() to return a 32 bit pseudo-random integer.
RETURN VALUES
The random() function uses a non-linear additive feedback random number generator employing a default table of size 31 long integers to
return successive pseudo-random numbers in the range from 0 to (2**31)-1. The period of this random number generator is very large, approxi-
mately 16*((2**31)-1).
The arc4rand() function uses the RC4 algorithm to generate successive pseudo-random bytes. The arc4random() function uses arc4rand() to gen-
erate pseudo-random numbers in the range from 0 to (2**32)-1.
The read_random() function returns the number of bytes placed in buffer.
AUTHORS
Dan Moschuk wrote arc4random().
Mark R V Murray wrote read_random().
BSD
September 25, 2000 BSD