14 Commits (b99a228f7578047d7c86c72a20fb553b903684e9)

Author SHA1 Message Date
  Andrew Belt 0cd74bf928 Don't reset random state in random::init() if already seeded. 3 years ago
  Andrew Belt d0224944c8 Make random number generator an inline class which increases performance and supports `std::random` distributions. 3 years ago
  Andrew Belt 585de0d318 Use more precise conversion from uint64_t -> float on [0,1) for `random::uniform()`. 4 years ago
  Andrew Belt 120aafe6d3 Change order of includes to C++ standard headers, library headers, and local project headers. 5 years ago
  Andrew Belt f6eb33a235 Use 64-bit atomic for thread counter in random seed initialization. 5 years ago
  Andrew Belt 0c1194e84b Add counter to random seed in case threads initialize state in that same microsecond. 5 years ago
  Andrew Belt 20a875ff10 Allow random::init() to be called when already initialized. 5 years ago
  Andrew Belt 5c5f3f4517 Fix random::uniform() to not return 1.f. 5 years ago
  Andrew Belt 6f67c376c0 Slightly improve random::uniform() performance. 5 years ago
  Andrew Belt 696939069d Use <> instead of "" for include directive. 6 years ago
  Andrew Belt 8d63d198ea Make random state thread-local. 6 years ago
  Andrew Belt 69aa3f227a Use proper std:: namespace as needed. 6 years ago
  Andrew Belt 3644b1877e Clean up includes 6 years ago
  Andrew Belt 587f936a99 Move random to its own namespace, shuffle files around 6 years ago
  Andrew Belt 0e29f19320 Rename randomf() to randomUniform() 7 years ago
  Andrew Belt 60d98a641f Rename util.hpp to common.hpp, fix include paths 7 years ago
  Andrew Belt d024ccf8a0 Refactor util.hpp 7 years ago