Issue 121677 - Replace rtl::math::random with the random nuber generator in APR
Summary: Replace rtl::math::random with the random nuber generator in APR
Status: CONFIRMED
Alias: None
Product: Build Tools
Classification: Code
Component: external prerequisites (show other issues)
Version: 4.0.0-dev
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-26 14:13 UTC by Andrea Pescetti
Modified: 2013-02-21 23:22 UTC (History)
2 users (show)

See Also:
Issue Type: FEATURE
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrea Pescetti 2013-01-26 14:13:10 UTC
Replace rtl::math::random with the random nuber generator in APR. We have a
random number generator in SAL that we use for bookmarks in documents and
to seed the PRNG. APR has a crypto grade number generator that could be used
instead. This would add a SAL dependency on APR, but it's likely that APR
has functionality that would be interesting for the SAL module.

[ Credit: this is one of the development tasks suggested by Pedro in
http://permalink.gmane.org/gmane.comp.apache.incubator.ooo.devel/29268 
feel free to ask the development mailing list for more details:
http://openoffice.apache.org/mailing-lists.html ]
Comment 1 orcmid 2013-01-26 19:03:07 UTC
APR?

We need to distinguish between a PRG and a cryptographic-grade random number generator.  PRGs are faster but are often seeded by a crypto-grade RNG value to get going.  (I think Pedro used that characteristic to seed the new PRG for CALC.) A crypto-grade RNG has very different performance characteristics.

That distinction may be meant here, and there is code in SVN that does fairly elaborate things to get some random numbers to fire up a PRG with.  (I'm never sure whether and where code in the SVN is actually used, so don't know if I have seen the SAL one or not.)