[MXS-291] Random number generation has flaws Created: 2015-07-29 Updated: 2015-09-01 Resolved: 2015-09-01 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core |
| Affects Version/s: | 1.2.0 |
| Fix Version/s: | 1.3.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | martin brampton (Inactive) | Assignee: | martin brampton (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
All |
||
| Description |
|
Random generators should be initialised once per thread, and should not be reinitialised within functions. Seeding with the current time will give the same sequences if seeding takes place at pretty much the same time. Re-entrant versions should be used, and are not. Better random generators (faster as well as more random) are available, notably PCG http://www.pcg-random.org/ |
| Comments |
| Comment by martin brampton (Inactive) [ 2015-09-01 ] |
|
Fixed in branch |