wm: infra

Download patch

ref: 9bad4d3f96208b2db152377d0e44094e3ffe00fd
parent: 98fefc85d7ac911be1e0557be4dfdced61aed3fe
author: saeed <saeed@cloud9p.org>
date: Mon May 5 19:09:29 IDT 2025

minor chnages

--- a/newuser
+++ b/newuser
@@ -3,8 +3,8 @@
 args=()
 
 fn usage {
-		echo 'usage: newuser [-n] [-d dept] [-e email] [-i postid] [-s sponsormail] user [pass]' >[1=2]
-		exit 'usage'
+	echo 'usage: newuser [-n] [-d dept] [-e email] [-i postid] [-s sponsormail] user [pass]' >[1=2]
+	exit 'usage'
 }
 
 fn newu {
--- a/pasted
+++ b/pasted
@@ -9,7 +9,7 @@
 # not to override files
 fn genrand {
 	dir = $1
-	rand = `{dd -quiet 1 -if /dev/random -bs 2 -count 1 | xd -1 | awk '{$1=""; print $0}' | tr -d ' '}
+	rand = `{dd -quiet 1 -if /dev/random -bs 1 -count 2 | xd -1 | awk '{$1=""; print $0}' | tr -d ' '}
 	if(test -e $dir/$rand){
 		genrand
 	}
@@ -17,4 +17,4 @@
 
 genrand $1
 echo $rand
-read -m -c `{echo '1024 * 1024 * 5'| bc} > $dir/$rand
+read -m -c `{echo '1024 * 1024 * 10'| bc} > $dir/$rand
--