File tree Expand file tree Collapse file tree 5 files changed +20
-2
lines changed
Expand file tree Collapse file tree 5 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ ksh 93u+m general copyright notice
2323# Phi <phi.debian@gmail.com> #
2424# atheik <14833674+atheik@users.noreply.github.com> #
2525# Vincent Mihalkovic <vmihalko@redhat.com> #
26+ # dnewhall <dnewhall@users.noreply.github.com> #
2627# Ryan Schmidt <ryandesign@macports.org> #
2728# Harald van Dijk <harald@gigawatt.nl> #
2829# Chase <nicetrynsa@protonmail.ch> #
2930# rymrg <54061433+rymrg@users.noreply.github.com> #
3031# hyousatsu <118750527+hyousatsu@users.noreply.github.com> #
31- # dnewhall <dnewhall@users.noreply.github.com> #
3232# Trey Valenta <t@trey.net> #
3333# Sterling Jensen <5555776+sterlingjensen@users.noreply.github.com> #
3434# Marc Wilson <posguy99@gmail.com> #
Original file line number Diff line number Diff line change 22* *
33* This software is part of the ast package *
44* Copyright (c) 1982-2011 AT&T Intellectual Property *
5- * Copyright (c) 2020-2024 Contributors to ksh 93u+m *
5+ * Copyright (c) 2020-2025 Contributors to ksh 93u+m *
66* and is licensed under the *
77* Eclipse Public License, Version 2.0 *
88* *
1313* David Korn <dgk@research.att.com> *
1414* Martijn Dekker <martijn@inlv.org> *
1515* Johnothan King <johnothanking@protonmail.com> *
16+ * dnewhall <dnewhall@users.noreply.github.com> *
1617* *
1718***********************************************************************/
1819
Original file line number Diff line number Diff line change 1616* hyenias <58673227+hyenias@users.noreply.github.com> *
1717* Harald van Dijk <harald@gigawatt.nl> *
1818* K. Eugene Carlson <kvngncrlsn@gmail.com> *
19+ * dnewhall <dnewhall@users.noreply.github.com> *
1920* *
2021***********************************************************************/
2122/*
Original file line number Diff line number Diff line change 1414* Martijn Dekker <martijn@inlv.org> *
1515* Johnothan King <johnothanking@protonmail.com> *
1616* hyenias <58673227+hyenias@users.noreply.github.com> *
17+ * dnewhall <dnewhall@users.noreply.github.com> *
1718* *
1819***********************************************************************/
1920/*
Original file line number Diff line number Diff line change @@ -1741,5 +1741,20 @@ exp='^[[:digit:]]{8}$'
17411741[[ $got =~ $exp ]] || err_exit ' $((.sh.version)) does not yield YYYYMMDD digits' \
17421742 " (expected match of ERE $exp , got '$got ')"
17431743
1744+ # ======
1745+ # As of 93u+m/1.1, $RANDOM uses nrand48(3) which should use the same pseudorandom
1746+ # generator on all systems, producing a known sequence for a given seed value.
1747+ case ${.sh.version} in
1748+ * 93u+m/1.0.* )
1749+ ;;
1750+ * 93u+m/* )
1751+ RANDOM=123
1752+ exp=' 24979 26943 1328 1988 6255 23944 24547 11971 6923 8339'
1753+ got=" $RANDOM $RANDOM $RANDOM $RANDOM $RANDOM $RANDOM $RANDOM $RANDOM $RANDOM $RANDOM "
1754+ [[ $got == " $exp " ]] || err_exit " RANDOM does not seem to use the expected pseudorandom generator" \
1755+ " (expected $( printf %q " $exp " ) , got $( printf %q " $got " ) )"
1756+ ;;
1757+ esac
1758+
17441759# ======
17451760exit $(( Errors< 125 ? Errors: 125 ))
You can’t perform that action at this time.
0 commit comments