Skip to content

Commit

Permalink
removing cstdint header
Browse files Browse the repository at this point in the history
  • Loading branch information
mblum committed Nov 6, 2013
1 parent 143859d commit 81aa3da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions include/gp_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <tr1/cstdint>

namespace libgp {

Expand All @@ -26,7 +25,7 @@ namespace libgp {
/** Pseudorandom integers from a uniform discrete distribution.
* Returns a random integer drawn from the discrete uniform
* distribution on 0, ..., n-1. */
static uint32_t randi(uint32_t n);
static size_t randi(size_t n);

/** Double precision numerical approximation to the standard normal
* cumulative distribution function. The cumulative standard normal
Expand Down
2 changes: 1 addition & 1 deletion src/gp_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace libgp {
return array;
}

uint32_t Utils::randi(uint32_t n)
size_t Utils::randi(size_t n)
{
return drand48()*n;
}
Expand Down

0 comments on commit 81aa3da

Please sign in to comment.