Fixed a bashism with the use of $RANDOM in hgeditor.
The variable $RANDOM is not POSIX so a portable /bin/sh may not define
it. When creating a directory with a random name it's better to use
mktemp, which, even though is not POSIX, exists in common Unixes
including Linux, OpenBSD, FreeBSD and MacOS X.
% wide diffstat
a | 213 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 213 insertions(+), 0 deletions(-)
% diffstat width
a | 213 ++++++++++++++
1 files changed, 213 insertions(+), 0 deletions(-)
% narrow diffstat
a | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
% binary diffstat
b | 0
1 files changed, 0 insertions(+), 0 deletions(-)
% binary git diffstat
b | Bin
1 files changed, 0 insertions(+), 0 deletions(-)