summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_rand.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-09-05 11:19:35 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-05 16:12:08 +0000
commit13ea3ff1e33313c7775013acaff4ec218bc632ff (patch)
tree6c0b5efdd062076f1bb87adf51c870fd9d90a3d1 /core/fxcrt/fx_rand.h
parent4fde70e28c6aff85ad30a958823e658678f5cfb6 (diff)
downloadpdfium-13ea3ff1e33313c7775013acaff4ec218bc632ff.tar.xz
Split random code from fx_extension.h
This CL moves the code invovled in random number generation into fx_rand.h from fx_extension.h. Change-Id: I6c644d7ec0323f32ef6e23c2e2548a9c792e3a72 Reviewed-on: https://pdfium-review.googlesource.com/13070 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_rand.h')
-rw-r--r--core/fxcrt/fx_rand.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/fxcrt/fx_rand.h b/core/fxcrt/fx_rand.h
new file mode 100644
index 0000000000..db5f48fee3
--- /dev/null
+++ b/core/fxcrt/fx_rand.h
@@ -0,0 +1,18 @@
+// Copyright 2017 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef CORE_FXCRT_FX_RAND_H_
+#define CORE_FXCRT_FX_RAND_H_
+
+#include <stdint.h>
+
+void* FX_Random_MT_Start(uint32_t dwSeed);
+void FX_Random_MT_Close(void* pContext);
+uint32_t FX_Random_MT_Generate(void* pContext);
+void FX_Random_GenerateBase(uint32_t* pBuffer, int32_t iCount);
+void FX_Random_GenerateMT(uint32_t* pBuffer, int32_t iCount);
+
+#endif // CORE_FXCRT_FX_RAND_H_