File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ echo "$(( ( RANDOM % 10 ) + 1 ))"
51
51
52
52
``` sh
53
53
LC_CTYPE=C tr -dc A-Za-z0-9 < /dev/random | head -c 60 | xargs
54
+ # or
55
+ head /dev/urandom | tr -dc a-f0-9 | head -c 40
54
56
```
55
57
56
58
## cksum
@@ -62,6 +64,12 @@ This technique can be used for consistent hashing
62
64
echo $( echo " hashingstring" | cksum | cut -f 1 -d \ )
63
65
```
64
66
67
+ ##
68
+
69
+ ``` sh
70
+ head /dev/urandom | tr -dc a-f0-9 | head -c 40
71
+ ```
72
+
65
73
## Resources
66
74
67
75
* /dev/random example [ here] ( https://gist.github.com/5c0tt/b9f452a9076daca4fa35 )
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ Steps [README.md](./02_job_functions/README.md)
172
172
# # 03 - Pipe filters
173
173
174
174
Demonstrates how read from stdin stream and process it.
175
- Steps [README.md](./03_pipe_filter_function /README.md)
175
+ Steps [README.md](./03_pipe_filter_functions /README.md)
176
176
177
177
# # 04 - Trap handlers
178
178
You can’t perform that action at this time.
0 commit comments