SB-6.1-PRE

This commit is contained in:
ItzEmerald committed 2021-02-02 13:50:53 +00:00
1 parent 690169a409
commit 358a25f522
3760 files changed
+300059 -36

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
# hash
```js
// usage
chance.hash()
chance.hash({length: 25})
chance.hash({casing: 'upper'})
```
Return a random hex hash
```js
chance.hash()
=> 'e5162f27da96ed8e1ae51def1ba643b91d2581d8'
```
By default, the hash is lowercase and 40 hex characters long (same as a git
commit hash).
Optionally specify a length
```js
chance.hash({length: 15})
=> 'c28f57cb599ada4'
```
Optionally specify casing to get a hash with only uppercase letters
rather than the default lowercase
```js
chance.hash({casing: 'upper'})
=> '3F2EB3FB85D88984C1EC4F46A3DBE740B5E0E56E'
```