News for hackers. Stuff that matters.
Re:Random Numbers in Bash by nixcraft on Monday March 27, 2023 @11:03AM (#35327615)
Are you on GNU/Bash version 5.1[0]? A new bash variable, SRANDOM added to GNU/Bash-5.1 release, which gets its random data from the system’s entropy engine and is not lined and cannot be reseeded to get an identical random sequence. For example:

   echo "$SRANDOM"
   for r in {1..5}; do printf "%s\n" "$SRANDOM"; done 
[0] https://www.cyberciti.biz/linux-news/gnu-bash-5-1-released-w...
Re:Random Numbers in Bash by tux on Monday March 27, 2023 @11:14AM (#35327763)
Or something like this; echo -e "$SRANDOM"{1..5}"\n"
Re:Random Numbers in Bash by jwilk on Monday March 27, 2023 @11:34AM (#35328032)
Er, I don't think you want that.
Re:Random Numbers in Bash by jwilk on Monday March 27, 2023 @01:27PM (#35329563)
Do you really wanted to append digits 1, 2, 3, 4, 5 to your high-quality random numbers?