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

Unified Diff: fusl/src/prng/rand.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 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
Index: fusl/src/prng/rand.c
diff --git a/fusl/src/prng/rand.c b/fusl/src/prng/rand.c
index c000cd248cef667bab257940768616c9349f7d70..166e09493f344bad511c03022a2fce0fbf70dd29 100644
--- a/fusl/src/prng/rand.c
+++ b/fusl/src/prng/rand.c
@@ -3,13 +3,11 @@
static uint64_t seed;
-void srand(unsigned s)
-{
- seed = s-1;
+void srand(unsigned s) {
+ seed = s - 1;
}
-int rand(void)
-{
- seed = 6364136223846793005ULL*seed + 1;
- return seed>>33;
+int rand(void) {
+ seed = 6364136223846793005ULL * seed + 1;
+ return seed >> 33;
}

Powered by Google App Engine
This is Rietveld 408576698