]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 13 May 2012 01:12:13 +0000 (01:12 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 13 May 2012 01:12:13 +0000 (01:12 +0000)
MagickCore/random-private.h

index d301552db593a625fa0f9abb3a692e25dc751246..a758de2af74b0b8607eaa67093b9ef3f6f869fcf 100644 (file)
@@ -54,7 +54,7 @@ static inline RandomInfo **AcquireRandomInfoThreadSet(void)
   size_t
     number_threads;
 
-  number_threads=(size_t) GetMagickResourceLimit(ThreadResource);
+  number_threads=GetOpenMPMaximumThreads();
   random_info=(RandomInfo **) AcquireQuantumMemory(number_threads,
     sizeof(*random_info));
   if (random_info == (RandomInfo **) NULL)