View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 12248 | Feature requests | Expression Manager | public | 2017-04-03 12:11 | 2019-09-07 10:58 |
| Reporter | jelo | Assigned To | |||
| Priority | none | Severity | feature | ||
| Status | new | Resolution | open | ||
| Summary | 12248: Expose php mt_rand to Expression manager | ||||
| Description | The rand() is not a very good PRNG. A change of rand() (EM) to use mt_rand (PHP) would be possible too, but might would add compatibility issues when comparing old and new results. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Story point estimate | |||||
| Users affected % | |||||
| related to | 15246 | closed | DenisChenu | Allow fixed function (no js, only PHP) in expression mùanager |
|
7.1.0 rand() has been made an alias of mt_rand(). But for js : use Math.random or another ? |
|
|
Was there a time when rand() was not using PHP? |
|
|
The rand() JS for rand() PHP was this, right? function rand (min, max) { MT implementations for JS are available. But choosing the right one might be a bigger task. I'm really surprised that no rand() compatibility is maintained for PHP 7.1. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2017-04-03 12:11 | jelo | New Issue | |
| 2017-04-04 00:34 | DenisChenu | Note Added: 43374 | |
| 2017-04-04 09:38 | jelo | Note Added: 43376 | |
| 2017-04-04 10:08 | jelo | Note Added: 43378 | |
| 2019-09-07 10:58 | DenisChenu | Relationship added | related to 15246 |