🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #454

Re: random number generator

#454
From: Aidan Karley
Date: Wed, 10 Jan 2007 02:53
24 lines
2435 bytes
In article <3bc2c286.3@webcrossing.la2eafNXanI>,  wrote:
> So, you have to supply your own seed, presumably "at random"? 
> I have solved this problem by using Perl to generate a file 
> of random numbers
>
       I haven't noticed what sort of system you're working on. 
Most unix-alikes (Unices, BSDs, OS-X for Macs, Linuxens, and 
names too numerous to mention) have a system device that 
accumulates randomness from timing of system events (keystrokes, 
mouse movements, network packets), stores randomness in a system 
parameter across re-boots, and generally provides quite good 
quality randomness for the asking without the user needing to go 
into making their own randomness. 
dd -if /dev/random -of /path/to/destination [various parameters]
       
       Windows also provides such services, but they don't seem 
to be as user-visible as on the unices. See for example 
msdn2.microsoft.com/en-us/library/system.random(VS.80).aspx 
(it's a damned slow page to load).

-- 
 Aidan Karley, FGS
 Aberdeen, Scotland
 Written at Wed, 10 Jan 2007 01:55 GMT, but posted later.
Technical Details
Message-ID: <VA.000012b3.1980dd76@email.provider.invalid>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-peer0-test!news-peer-test!btnet!news-lond.gip.net!news.gsl.net!gip.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail
References: <3bc2c286.-1@webcrossing.la2eafNXanI> <3bc2c286.3@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,fff84dd5f285f870
X-Google-Attributes: gid10c61a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-peer0-test!news-peer-test!btnet!news-lond.gip.net!news.gsl.net!gip.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail
From: Aidan Karley <name1_name2@email.provider.invalid>
Newsgroups: adobe.postscript.programming
Subject: Re: random number generator
Date: Wed, 10 Jan 2007 02:53:36 GMT
Organization: Personal Service
Lines: 25
Message-ID: <VA.000012b3.1980dd76@email.provider.invalid>
References: <3bc2c286.-1@webcrossing.la2eafNXanI> <3bc2c286.3@webcrossing.la2eafNXanI>
Reply-To: name1_name2@email.provider.invalid
NNTP-Posting-Host: karley.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.demon.co.uk 1168397798 20960 83.104.55.73 (10 Jan 2007 02:56:39 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 10 Jan 2007 02:56:38 +0000 (UTC)
X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va