mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-04 11:42:28 +00:00
Make improvements
- Make rand64() thread safe - Introduce lemur64 lcg prng - Improve strace on New Technology - Improve msync() on New Technology
This commit is contained in:
parent
43ba3009b2
commit
29bf8b1a30
73 changed files with 888 additions and 269 deletions
|
@ -21,9 +21,9 @@
|
|||
/**
|
||||
* Generates number on [0,1)-real-interval, e.g.
|
||||
*
|
||||
* double x = _real2(vigna())
|
||||
* double x = _real2(lemur64())
|
||||
*
|
||||
* @see vigna(), mt19937()
|
||||
* @see lemur64(), mt19937()
|
||||
*/
|
||||
double _real2(uint64_t x) {
|
||||
return 1. / 9007199254740992. * (x >> 11);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue