[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 MXS-329

Generated at Thu Feb 08 03:58:12 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.