icon Top 9 categories map      RocketAware > man pages >

arc4random(3)

Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.


The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Home

Search all pages


Subjects

By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Math
Integer, Floating point, Matrix, Statistics, Boolean, ...

Processing
Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Communications
Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...

    

RocketLink!--> Man page versions: OpenBSD FreeBSD Others



ARC4RANDOM(3)             OpenBSD Programmer's Manual            ARC4RANDOM(3)

NAME
     arc4random, arc4random_stir, arc4random_addrandom - arc4 random number
     generator



SYNOPSIS
     #include <stdlib.h>

     u_int32_t
     arc4random(void);

     void
     arc4random_stir(void);

     void
     arc4random_addrandom(u_char *dat, int datlen);

DESCRIPTION
     The arc4random() function uses the key stream generator employed by the
     arc4 cipher, which uses 8*8 8 bit S-Boxes. The S-Boxes can be in about
     (2**1700) states.

     The arc4random_stir() function reads data from /dev/arandom and uses it
     to permute the S-Boxes via arc4random_addrandom().

     There is no need to call arc4random_stir() before using arc4random(),
     since arc4random() automatically initializes itself.

SEE ALSO
     rand(3),  rand48(3),  random(3)

HISTORY
     An algorithm call RC4 was designed by RSA Data Security, Inc.  It was
     considered a trade secret, but not trademarked.  A clone of this was
     posted anonymously to the USENET and was confirmed to be equivalent by
     several sources who had access to the original cipher.  Because of the
     trade secret situation, RSA Data Security, Inc. can do nothing about the
     situation.  Since RC4 used to be a trade secret, the cipher is now re-
     ferred to as ARC4.

OpenBSD 2.6                     April 15, 1997                               1

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.



(Corrections, notes, and links courtesy of RocketAware.com)


[Detailed Topics]
FreeBSD Sources for arc4random(3) functions
OpenBSD sources for arc4random(3)


[Overview Topics]

Up to: Random Numbers


RocketLink!--> Man page versions: OpenBSD FreeBSD Others






Rapid-Links: Search | About | Comments | Submit Path: RocketAware > man pages > arc4random.3/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments