1

I need to create a shell script or a command that will produce random string, something like this:

date | md5sum

but it needs to work on default hp-ux installation, which doesn't contain any md5sum, there is neither /dev/random or /dev/urandom

Someone has an idea if that is even possible and if yes, how?

fedorqui
  • 275,237
  • 103
  • 548
  • 598
Petr
  • 13,747
  • 20
  • 89
  • 144

1 Answers1

1

If you have BASH OR ksh you can use $RANDOM variable:

rand=$RANDOM
anubhava
  • 761,203
  • 64
  • 569
  • 643