Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vowpalwabbit/rand48.cc')
-rw-r--r--vowpalwabbit/rand48.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/vowpalwabbit/rand48.cc b/vowpalwabbit/rand48.cc
index 4ea4e75e..4288e64d 100644
--- a/vowpalwabbit/rand48.cc
+++ b/vowpalwabbit/rand48.cc
@@ -1,8 +1,5 @@
//A quick implementation similar to drand48 for cross-platform compatibility
#include <stdint.h>
-#include <iostream>
-using namespace std;
-
//
// NB: the 'ULL' suffix is not part of the constant it is there to
// prevent truncation of constant to (32-bit long) when compiling
@@ -25,15 +22,9 @@ float merand48(uint64_t& initial)
uint64_t v = c;
-void msrand48(uint64_t initial)
-{
- v = initial;
-}
+void msrand48(uint64_t initial) { v = initial; }
-float frand48()
-{
- return merand48(v);
-}
+float frand48() { return merand48(v); }
float frand48_noadvance()
{