Hi Alex
First, let me apologize for my poor English skills. It may contain rude
expressions, but it is not s intentional.
> The closest library I know and used when I had that need you mentioned is
a userland implementation: https://github.com/paragonie/RandomLib
This seems to be actively mainta
On Tue, Jan 26, 2021 at 8:06 PM Go Kudo wrote:
> RFCs have been reorganized and radically rewritten.
> https://wiki.php.net/rfc/object_scope_prng
>
> The implementation is unchanged, but the background has been explained in
> more detail and the execution speed has been re-verified with PHP 8.1-d
> but I don't think rng_rand() should support calling without arguments.
This is a backwards-compatibility leftover in mt_rand() and we should not
carry it over into a new API.
While this is true, the current implementation of MT in PHP relies on
global state, and I believe that having a compatibl
Am 19.01.21, 17:20 schrieb "Nikita Popov" :
* 64-bit: I looked over your implementation, and I think your approach to
handling 64-bits is correct. You only call next64() if the requested range
is larger than 32-bit, and that can only happen on 64-bit systems, thus
guaranteeing
Yes. RNG stands for Random Number Generator, which I think is a common
acronym.
Cryptographic pseudo-random number generators are commonly known as a
CSPRNG.
2021年1月19日(火) 1:42 Kamil Tekiela :
> What does rng stand for? Is it short for range or acronym of random number
> generator?
>
On Mon, Jan 18, 2021 at 5:29 PM Go Kudo wrote:
> RFC and implementation updated.
>
> https://wiki.php.net/rfc/object_scope_prng
> https://github.com/php/php-src/pull/6568
>
> > MT19937 returns a signed 32bit number as a result of the `next()` method;
> the mt_rand() function returns a bit-shifted
What does rng stand for? Is it short for range or acronym of random number
generator?