diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2004-06-08 21:51:11 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2004-06-08 21:51:11 +0000 |
commit | ed76bafc5e6a5f1d5bbea469f38e0798e7b86459 (patch) | |
tree | a727a085fc488434ab8119d5809f812357c90d2d /Src/Modules/mathfunc.c | |
parent | a9c6ca4edea188744af6ff086cadd748a5e44ba5 (diff) | |
download | zsh-ed76bafc5e6a5f1d5bbea469f38e0798e7b86459.tar.gz zsh-ed76bafc5e6a5f1d5bbea469f38e0798e7b86459.tar.xz zsh-ed76bafc5e6a5f1d5bbea469f38e0798e7b86459.zip |
20029: fix randomness of mathfunc rand48(seed)
Diffstat (limited to 'Src/Modules/mathfunc.c')
-rw-r--r-- | Src/Modules/mathfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/mathfunc.c b/Src/Modules/mathfunc.c index 691755683..6b6488abb 100644 --- a/Src/Modules/mathfunc.c +++ b/Src/Modules/mathfunc.c @@ -500,7 +500,7 @@ math_string(UNUSED(char *name), char *arg, int id) * to each unsigned short. */ for (i = 0; i < 3 && !do_init; i++) { - unsigned short *seedptr = seedbuf + i; + unsigned short *seedptr = seedbufptr + i; *seedptr = 0; for (j = 0; j < 4; j++) { if (*seedstr >= '0' && *seedstr <= '9') |