Negative values in PcgOneseq128XslRr64::jump($advance)
| From: | Anton Smirnov | Date: | Sun, 31 Jul 2022 15:50:46 +0000 |
| Subject: | Negative values in PcgOneseq128XslRr64::jump($advance) | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-118328@lists.php.net to get a copy of this message | ||
Hi!
I'm writing a polyfill for ext-random and I noticed a small weirdness.
PcgOneseq128XslRr64::jump() accepts negative $advance where it
automagically becomes unsigned positive. Does it make sense or maybe
it's better to throw a ValueError there?
--
Anton