mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-05-06 14:56:36 +08:00
Rewrite random character generator (#329)
Co-authored-by: Howard20181 <40033067+Howard20181@users.noreply.github.com>
This commit is contained in:
parent
30816216a0
commit
8cc5f9c1ab
@ -96,7 +96,7 @@ abort() {
|
|||||||
trap abort INT TERM
|
trap abort INT TERM
|
||||||
|
|
||||||
Gen_Rand_Str() {
|
Gen_Rand_Str() {
|
||||||
tr -dc '[:lower:]' </dev/urandom | fold -w "$1" | head -n 1
|
head /dev/urandom | tr -dc '[:lower:]' | head -c"$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
default() {
|
default() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user