Deutsch   English   Français   Italiano  
<vqibpd$ahu0$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Newsgroups: sci.crypt
Subject: Re: lun - Lucky Number
Date: Sat, 8 Mar 2025 13:11:08 -0800
Organization: A noiseless patient Spider
Lines: 58
Message-ID: <vqibpd$ahu0$2@dont-email.me>
References: <vqg3sj$3q7rg$1@stefan.eternal-september.org>
 <vqi2io$8r9n$1@dont-email.me> <vqi3p7$8rlr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 08 Mar 2025 22:11:09 +0100 (CET)
Injection-Info: dont-email.me; posting-host="e72e54bf1123d47ca4084a40faedb0d1";
	logging-data="346048"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+ZvN61Fa0B/arR6xGOcDNn07uRG1b1BjA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:JN5aLtyAeTkECGBprbf9ecJ0FoM=
Content-Language: en-US
In-Reply-To: <vqi3p7$8rlr$1@dont-email.me>
Bytes: 2950

On 3/8/2025 10:54 AM, Richard Heathfield wrote:
> On 08/03/2025 18:34, Rich wrote:
>> Stefan Claas <fgrsna.pynnf@vagrearg.eh> wrote:
>>> Hi all,
>>>
>>> from the previous discussion with Richard I came up with a new idea to
>>> create a random number. I call the Go program lun = Lucky Number.
>>
>> How /random/ do you want this number to be?
>>
>>> Here is a sample run with 3 seconds set.  You can also use1 or many
>>> more seconds.
>>>
>>> $ lun 3
>>>
>>> Started: 2025-03-08 01:29:57
>>>
>>> 2287128966796887 1741393797 2287130708190684
>>> 2443764953918824 1741393798 2443766695312622
>>> 8241182675020522 1741393799 8241184416414321
>>>
>>> Ended: 2025-03-08 01:29:59
>>> Time elapsed: 00:00:03
>>> Multiplying: 2287130708190684 * 8241184416414321
>>> Your lucky number is: 18848665950643714819328816385564
>>> SHA256: 28fd1445771c772f403eb4092b722640a529b5c84c3ee50bc6d631454e83daed
>>>
>>> The first column is a random number
>>
>> So, you already have a *random number*.  Why do any more?
>>
>>> , the second the local Unix-Epoch-Time
>>
>> Very *not* random.
>>
>>> and the third shows the addition of column1 and column2.
>>
>> Provided the random number was "good enough randomness" this has no
>> benefit.
>>
>>> The lucky number was generated by multiplying the first and last
>>> value of the right column.
>>
>> The product R1 * R2 is little different, randomness wise, from the
>> product R1 * (R2 + Predictable_Offset).  If you can generate random
>> numbers, what is the value in computing R1 * (R2 + Predictable_Offset)?
>>
>>> Hope you like the idea!
>>
>> I fail to see any point to it.
>>
>> If you can generate a random number, then you already have a random
>> number.  You can stop here and enjoy using your random number.
> 
> https://xkcd.com/221/
> 

ROFL!!! thanks for that.