AminetAminet
Search:
81912 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/misc/AHIRNG-amigaos3.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:AHIRNG - Random Number Generator via AHI
Author:Rupert Hausberger <natmeg at gmx.net>
Uploader:Rupert Hausberger <natmeg gmx net>
Type:util/misc
Version:1.2
Architecture:m68k-amigaos
Date:2012-03-06
Download:http://aminet.net/util/misc/AHIRNG-amigaos3.lha - View contents
Readme:http://aminet.net/util/misc/AHIRNG-amigaos3.readme
Downloads:1319
Description
===========
  AHIRNG (Audio Hardware Interface Random Number Generator) is a tool to
  generate REAL random number from a soundcard.

Requirements
============
  - AmigaOS 3.x
  - MUI 3.8
  - NList classes
  - AHI 4.x

  - 44khz/16bit soundcard
  - Analoge noise source

Installation
============
  Installation is very simple.
  Just drag the AHIRNG-drawer where you like, it does not need assigns.

Usage
=====
  Connect your Pegasos-onboard/Soundcard line-in to a analoge radio/SAT
receiver.
  Remove the areal from the receiver so you only hear the pink-noise. This is
our   source for the random numbers.

  Now start the tool and press 'Monitor'. Adjust the input-gain to about ~90%.
  Watch the gauges, they should be around ~(+-)25.000 to (+-)30.000.

  Now select the output file, press 'Record' and see the random bytes comming...
  If the needed amount of random-bytes has been recorded press 'Stop'. Now press
  "Analyse output file" to check the quality. Quality should be at least 'High'
in   all five tests for randomness...

  Technical
  ---------
  Sampling is done at 44khz in 16bit. This means we got a raw-stream of   44000
* 2 * 2 bytes/s (44000hz * 2 bytes (16bits) * 2 channels) = 176.000 bytes/s  
Next step is to convert this stream into quality random numbers. This is done  
with the following function:

  for (i = 0; i < 44000; i++) //for every second   {      UWORD l = ((((ULONG
*)rawdata)[i] >> 16) & 0xffff);  //extract left channel      UWORD r =  (((ULONG
*)rawdata)[43999 - i] & 0xffff); //extract right channel and invert

     rnddata[i] = (l - r) & 0xff; //substract the inverted left channel from the
right   }

  ToolTypes
  ---------
  TOOLPRI/K/N - Set to toolpri from -127 to 127, defaults to 0

Author
======
  ©2005-2012 Rupert Hausberger <natmeg at gmx.net>
  http://natmeg.mooo.com/

Copyrights
==========
NList : ©2001-2012 NList Open Source Team
        http://www.sourceforge.net/projects/nlist-classes/

License
=======
  GPL. Please refer to the file COPYING for details.

History
=======
  Please refer to the file ChangeLog for details.



Contents of util/misc/AHIRNG-amigaos3.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 1350    1694  79.7% -lh5- f05c Mar  1 01:13 AHIRNG.info
[generic]                17801   38344  46.4% -lh5- af29 Mar  1 21:02 ahirng/ahirng
[generic]                 1562    2464  63.4% -lh5- fc7b Mar  1 01:13 AHIRNG/AHIRNG.info
[generic]                22333   22333 100.0% -lh0- b267 Mar  1 01:13 AHIRNG/AHIRNG.logo
[generic]                 1350    1694  79.7% -lh5- c4af Mar  1 01:13 AHIRNG/Docs.info
[generic]                 1500    3272  45.8% -lh5- e036 Mar  1 01:13 AHIRNG/Docs/AHIRNG.guide
[generic]                 2321    2947  78.8% -lh5- 5bd1 Mar  1 01:13 AHIRNG/Docs/AHIRNG.guide.info
[generic]                 1196    2326  51.4% -lh5- 08b9 Mar  1 01:13 AHIRNG/Docs/AHIRNG.readme
[generic]                 2856    6138  46.5% -lh5- 3f67 Mar  1 01:13 AHIRNG/Docs/AHIRNG.readme.info
[generic]                  142     230  61.7% -lh5- 46ad Mar  1 01:36 AHIRNG/Docs/ChangeLog
[generic]                 2852    6138  46.5% -lh5- 076f Mar  1 01:13 AHIRNG/Docs/ChangeLog.info
[generic]                 6996   18092  38.7% -lh5- a33a Mar  1 01:13 AHIRNG/Docs/COPYING
[generic]                 2854    6138  46.5% -lh5- dec1 Mar  1 01:13 AHIRNG/Docs/COPYING.info
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        13 files   65113  111810  58.2%            Mar  6 21:06

Aminet © 1992-2017 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>