diff options
author | Karl Berry <karl@freefriends.org> | 2010-05-09 00:26:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-05-09 00:26:15 +0000 |
commit | 0114fbc0beecd9a094b260d78cccdc6ff3e85f1e (patch) | |
tree | 53f68a7eb4cd90f611560e9b477b55c671b94717 /Build/source/utils/asymptote/runmath.in | |
parent | 539c0d5c885fa1c451a55ef8e7e1a2bbf1a32861 (diff) |
asy 1.94
git-svn-id: svn://tug.org/texlive/trunk@18161 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/runmath.in')
-rw-r--r-- | Build/source/utils/asymptote/runmath.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/runmath.in b/Build/source/utils/asymptote/runmath.in index 7b6e9e29579..d8f473a8433 100644 --- a/Build/source/utils/asymptote/runmath.in +++ b/Build/source/utils/asymptote/runmath.in @@ -89,18 +89,20 @@ Int sgn(real x) Int rand() { - return rand(); + return random(); } void srand(Int seed) { - srand(intcast(seed)); + const int n=256; + static char state[n]; + initstate(intcast(seed),state,n); } // a random number uniformly distributed in the interval [0,1] real unitrand() { - return ((real) rand())/RAND_MAX; + return ((real) random())/RAND_MAX; } Int ceil(real x) |