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

Side by Side Diff: third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.cpp

Issue 1629693002: Add missing closing namespace comments to wtf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PR26274 Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 1996, David Mazieres <dm@uun.org> 2 * Copyright (c) 1996, David Mazieres <dm@uun.org>
3 * Copyright (c) 2008, Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2008, Damien Miller <djm@openbsd.org>
4 * 4 *
5 * Permission to use, copy, modify, and distribute this software for any 5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above 6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies. 7 * copyright notice and this permission notice appear in all copies.
8 * 8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
(...skipping 30 matching lines...) Expand all
41 if (s_shouldUseAlwaysZeroRandomSourceForTesting) { 41 if (s_shouldUseAlwaysZeroRandomSourceForTesting) {
42 memset(buffer, '\0', length); 42 memset(buffer, '\0', length);
43 return; 43 return;
44 } 44 }
45 45
46 // This should really be crypto::RandBytes(), but WTF can't depend on crypto . The implementation of 46 // This should really be crypto::RandBytes(), but WTF can't depend on crypto . The implementation of
47 // crypto::RandBytes() is just calling base::RandBytes(), so both are actual ly same. 47 // crypto::RandBytes() is just calling base::RandBytes(), so both are actual ly same.
48 base::RandBytes(buffer, length); 48 base::RandBytes(buffer, length);
49 } 49 }
50 50
51 } 51 } // namespace WTF
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/ConditionalDestructor.h ('k') | third_party/WebKit/Source/wtf/Forward.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698