🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.crypt.random-numbers
Article #2

Re: Gathering entropy for PRNGs on MVS

#2
From: Bob
Date: Mon, 10 Mar 2003 21:37
30 lines
2209 bytes
Hi Duke,

I haven't  played with IBM mainframes for quite some time, but I had a
similar problem many years ago.  The entity I settled on was derived from
the 8 byte TOD clock - but I reversed the BYTES not the bits.  As you know,
the high order byte of the TOD clock changes least quickly, while the low
order byte of the TOD clock changes most quickly.  From (dim) memory, the
(32 bit) code went something like

; get TOD into my memory
      SVC ???,TODF
      ICM R4,1,TODF
      ICM R4,2,TODF+1
      ICM R4,4,TODF+2
      ICM R4,8,TODF+3
      ICM R5,1,TODF+4      ; note adjacent register
      ICM R5,2,TODF+5
      ICM R5,4,TODF+6
      ICM R5,8,TODF+7
      STM R4,R5,TODR

TODF DS 1D    ; TOD Forwards
TODR DS 1D    ;TOD Reverse

I can't remember the exact format of the ICM instruction (does the mask come
first?).  I can't remember the exact SVC call to get the eight byte TOD
either.  What I do remember is that the results were more accurate than the
documentation described.

Bob
Technical Details
Message-ID: <b4j0cr$1vn15u$1@ID-180637.news.dfncis.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!aspect.lnk.telstra.NET!not-for-mail
References: <b4ieak$2qn$1@slb9.atl.mindspring.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fd4af,4336d2c2bccbde14
X-Google-Attributes: gidfd4af,public
X-Google-Thread: fb57f,4336d2c2bccbde14
X-Google-Attributes: gidfb57f,public
X-Google-Thread: fed83,4336d2c2bccbde14
X-Google-Attributes: gidfed83,public
X-Google-ArrivalTime: 2003-03-10 13:34:21 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!aspect.lnk.telstra.NET!not-for-mail
From: "Bob" <me@privacy.net>
Newsgroups: sci.crypt.random-numbers,bit.listserv.ibm-main,sci.crypt
Subject: Re: Gathering entropy for PRNGs on MVS
Date: Tue, 11 Mar 2003 08:37:46 +1100
Lines: 32
Message-ID: <b4j0cr$1vn15u$1@ID-180637.news.dfncis.de>
References: <b4ieak$2qn$1@slb9.atl.mindspring.net>
NNTP-Posting-Host: aspect.lnk.telstra.net (139.130.103.7)
X-Trace: fu-berlin.de 1047332060 66815166 139.130.103.7 (16 [180637])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300