diff options
author | Mojca Miklavec <mojca.miklavec@gmail.com> | 2014-05-21 10:08:33 +0000 |
---|---|---|
committer | Mojca Miklavec <mojca.miklavec@gmail.com> | 2014-05-21 10:08:33 +0000 |
commit | dfae4647ee373628620ebb330646b2e1879de010 (patch) | |
tree | b7c919fe0bbc6a1e6e0857a3fcf17c68983e0bdd /Build/source/utils/asymptote/drawlabel.cc | |
parent | 783a761a9c97d8ba7360183ff19f3fa5c34cb7ef (diff) |
asymptote: fix random numbers on platforms like Solaris (with 16-bit RAND_MAX and 32-bit random())
git-svn-id: svn://tug.org/texlive/trunk@34169 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/drawlabel.cc')
-rw-r--r-- | Build/source/utils/asymptote/drawlabel.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/drawlabel.cc b/Build/source/utils/asymptote/drawlabel.cc index e887879b52d..1baaf18fe57 100644 --- a/Build/source/utils/asymptote/drawlabel.cc +++ b/Build/source/utils/asymptote/drawlabel.cc @@ -66,8 +66,8 @@ void texbounds(double& width, double& height, double& depth, inline double urand() { - static const double factor=2.0/RAND_MAX; - return rand()*factor-1.0; + static const double factor=2.0/RANDOM_MAX; + return random()*factor-1.0; } void setpen(iopipestream& tex, const string& texengine, const pen& pentype) |