| Deutsch English Français Italiano |
|
<vqidkl$aqnb$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Richard Heathfield <rjh@cpax.org.uk> Newsgroups: sci.crypt Subject: Re: lun - Lucky Number Date: Sat, 8 Mar 2025 21:42:44 +0000 Organization: Fix this later Lines: 28 Message-ID: <vqidkl$aqnb$1@dont-email.me> References: <vqg3sj$3q7rg$1@stefan.eternal-september.org> <vqi2io$8r9n$1@dont-email.me> <vqi2qe$90e8$1@stefan.eternal-september.org> <vqi3i4$95dd$1@stefan.eternal-september.org> <vqid0s$arf3$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 08 Mar 2025 22:42:46 +0100 (CET) Injection-Info: dont-email.me; posting-host="d67819b69f45a3d9842401862d8b6df3"; logging-data="355051"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188MpoSJKSXBej+evAm7b0nShk/ho7y47a8HLQhVnN9kA==" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:P2ggc+fO4k8pY79FFN0MOh7nv3o= Content-Language: en-GB In-Reply-To: <vqid0s$arf3$1@dont-email.me> Bytes: 1940 On 08/03/2025 21:32, Rich wrote: <snip> > Looking at the source, how does someone with pencil and paper perform > this magic?: > > n, _ := rand.Int(rand.Reader, max) Roll some dice. d4 give you two bits at a time, d8 give you three, or d16 give you four. Quick and easy. Or if you prefer decimal, d10s are also readily available. > As well, with just pencil and paper, obtaining a Unix epoch is quite an > interesting 'by hand' calculation in order to perform this: > > epochTime := time.Now().Unix() You can skip that part by pretending it's 1970. -- Richard Heathfield Email: rjh at cpax dot org dot uk "Usenet is a strange place" - dmr 29 July 1999 Sig line 4 vacant - apply within