get_random.sh 301 B

1234567
  1. # Copyright 2025 BackendServerTemplate Authors. All rights reserved.
  2. # Use of this source code is governed by a MIT-style
  3. # license that can be found in the LICENSE file.
  4. length=40
  5. randomString=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w $length | head -n 1)
  6. echo "$randomString" > random_data.txt