https://bugs.kde.org/show_bug.cgi?id=410855
Bug ID: 410855 Summary: Repeated Random Values Product: LabPlot2 Version: 2.6.0 Platform: Other OS: Linux Status: REPORTED Severity: critical Priority: NOR Component: backend Assignee: alexander.se...@web.de Reporter: ameya.patwardha...@gmail.com Target Milestone: --- Created attachment 122089 --> https://bugs.kde.org/attachment.cgi?id=122089&action=edit file which demonstrate repetitive random values SUMMARY Random values generated using the same function (eg. Flat, gaussian, etc.) are always the same i.e. Row 1 always gives same value 'a', row 2 always gives same value 'b', etc. This persists even across different files. See code KDE/labplot labplot/src/kdefrontend/spreadsheet/RandomValuesDialog.cpp gsl_rng_set is the function that seeds the random value generator. This function is not used anywhere leading to the repetitive values. The seed value should be taken from the current time. This function should be used after gsl_rng* r = gsl_rng_alloc(T); STEPS TO REPRODUCE 1. New spreadsheet 2. Generate Data -> Random values 3. OBSERVED RESULT EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.