Summary: | Random number generation weak with Rnd in BASIC | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Johnny_M <klasse> |
Component: | BASIC | Assignee: | Thomas Arnhold <thomas-libo> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | thomas-libo |
Version: | 4.0.5.2 release | ||
Hardware: | x86 (IA32) | ||
OS: | Windows (All) | ||
See Also: |
https://bugs.freedesktop.org/show_bug.cgi?id=33365 https://bugs.freedesktop.org/show_bug.cgi?id=66477 |
||
Whiteboard: | target:4.3.0 | ||
i915 platform: | i915 features: | ||
Attachments: | Test file |
Description
Johnny_M
2013-10-15 04:50:18 UTC
On a side note: The preliminary release notes of LO 4.2 under https://wiki.documentfoundation.org/ReleaseNotes/4.2#Calc state that a new Calc functionality has been added, to fill cell(s) with a random number(s) via Menu -> Edit -> Fill -> Random Number... I couldn't find the related implementation bug report, but it might need to be checked too, as to whether it uses the new generation method similarly to RAND() in Calc. Because there doesn't seem to be one central PRNG in LO; with different components using different implementations. (In reply to comment #1) > On a side note: The preliminary release notes of LO 4.2 under > https://wiki.documentfoundation.org/ReleaseNotes/4.2#Calc state that a new > Calc functionality has been added, to fill cell(s) with a random number(s) > via Menu -> Edit -> Fill -> Random Number... I couldn't find the related > implementation bug report, but it might need to be checked too, as to > whether it uses the new generation method similarly to RAND() in Calc. > Because there doesn't seem to be one central PRNG in LO; with different > components using different implementations. Found it, its part of bug 66477: http://cgit.freedesktop.org/libreoffice/core/commit/?id=5c05b1cabcf7f6a7f490ae6fc4bc145e75229752 ---------------------------------------------- P.S.: In case it matters for this bug: I tested with an Asus EeePC netbook, with an Intel Atom N450 CPU. (Don't know if it has a built-in CPU RNG.) Thomas Arnhold committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=df466d79cb126667cc9d5c108367bfa4f5ce76c8 fdo#70474: Random number generation weak with Rnd in BASIC The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.