Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Unified Diff: Source/wtf/CryptographicallyRandomNumber.h

Issue 15861022: Build WTF as dll in component build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix AutoDrainedPool ctor and ThreadSpecificThreadExit exports Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/wtf/BitVector.h ('k') | Source/wtf/CryptographicallyRandomNumber.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/CryptographicallyRandomNumber.h
diff --git a/Source/wtf/CryptographicallyRandomNumber.h b/Source/wtf/CryptographicallyRandomNumber.h
index 9b89f5c0e34bf471f24ca121b3ee0f7bd90e233b..53eb5c9846c6dc15b5f9358033c6d29109c0fa6f 100644
--- a/Source/wtf/CryptographicallyRandomNumber.h
+++ b/Source/wtf/CryptographicallyRandomNumber.h
@@ -20,7 +20,7 @@
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef WTF_CryptographicallyRandomNumber_h
@@ -28,10 +28,16 @@
#include <stdint.h>
+#include "wtf/WTFExport.h"
+
namespace WTF {
-uint32_t cryptographicallyRandomNumber();
-void cryptographicallyRandomValues(void* buffer, size_t length);
+typedef void (*RandomNumberSource)(unsigned char*, size_t);
+
+WTF_EXPORT void setRandomSource(RandomNumberSource);
+
+WTF_EXPORT uint32_t cryptographicallyRandomNumber();
+WTF_EXPORT void cryptographicallyRandomValues(void* buffer, size_t length);
}
« no previous file with comments | « Source/wtf/BitVector.h ('k') | Source/wtf/CryptographicallyRandomNumber.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698