From bff635be1d45ce721f5e40c64f665a247b995133 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 20 Jan 2015 16:24:14 +0200 Subject: Make the RAND() and RANDBETWEEN() Calc functions non-random when requested We don't want such a mode to affect other uses of randomness, though. Thus use a separate random number generator object for these two functions, and use a fixed seed for it if the SC_RAND_REPEATABLE environment variable is set. As RAND() is implemented in sc, and RANDBETWEEN() is implemented in scaddins, it was a bit hard to figure out where to add the new functions needed, without having to over-engineer things with UNO. (This functionality is totally Calc-specific, but neither sc nor scaddins has any public (non-UNO) API.) Caolan suggested the formula module, which seems like a good enough place to me. Change-Id: I4b0cb327392e51a18bce28478af91b0174d6b726 --- scaddins/Library_analysis.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'scaddins/Library_analysis.mk') diff --git a/scaddins/Library_analysis.mk b/scaddins/Library_analysis.mk index cafce60604a7..4946c5f74107 100644 --- a/scaddins/Library_analysis.mk +++ b/scaddins/Library_analysis.mk @@ -33,6 +33,7 @@ $(eval $(call gb_Library_use_libraries,analysis,\ comphelper \ cppu \ cppuhelper \ + for \ sal \ tl \ i18nlangtag \ -- cgit v1.2.3