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

Unified Diff: Source/wtf/CryptographicallyRandomNumber.cpp

Issue 641643004: Reapply the non-MathExtras parts of (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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/CheckedArithmetic.h ('k') | Source/wtf/DateMath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/CryptographicallyRandomNumber.cpp
diff --git a/Source/wtf/CryptographicallyRandomNumber.cpp b/Source/wtf/CryptographicallyRandomNumber.cpp
index 2de8201d57fec2e9fe694b8db6113ed2b5ff134c..285a5c95a9e31d312d5802416195d0875d884a0c 100644
--- a/Source/wtf/CryptographicallyRandomNumber.cpp
+++ b/Source/wtf/CryptographicallyRandomNumber.cpp
@@ -77,7 +77,7 @@ private:
ARC4Stream::ARC4Stream()
{
for (int n = 0; n < 256; n++)
- s[n] = n;
+ s[n] = static_cast<uint8_t>(n);
i = 0;
j = 0;
}
« no previous file with comments | « Source/wtf/CheckedArithmetic.h ('k') | Source/wtf/DateMath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698