> that only returns a fraction between 0 and 1, which could be useful but quite > a bit more work
What do you need? An integer between 0 or 1 and 'n'? Multiplying the result of RANDOM times 'n' should give you that integer pretty readily, no? This may not give you crypto quality, but the idea is right. What am I missing? Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Farley, Peter x23353 Sent: Friday, March 19, 2021 8:32 AM To: [email protected] Subject: Re: Contents of TOD Programmable Field under z/OS? Update: It seems we are on z13 boxes at the moment, and they do not have the Message-Security-Assist Extension 7 feature necessary to use the TRNG functions of PRNO. I could try the DRNG functions of PRNO but they seem to be a lot of work to use the right way (seeding, parameter blocks, etc.). It would be far easier to use the COBOL RANDOM intrinsic, but that only returns a fraction between 0 and 1, which could be useful but quite a bit more work to incorporate into the application function at issue. Lacking the COBOL UUID4 function here, the KISS principle says STCKE it will be for now. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
