Skip to content

Commit

Permalink
Update the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
poing committed Jan 22, 2024
1 parent e63bdb4 commit 95f0364
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ The `JavaScript` wrapper **is not** intended to allow subsequent commands. It s
```python
from js2pysecrets import setRNG, random

setRNG('testRandom')
setRNG('testRandom') # Output: True

# New subprocess defaults to 'nodeCryptoRandomBytes' RNG
random(32) # Output: '24c177c8'
random(32) # Output: '89535434'
random(32) # Output: '306e0c23'
Expand All @@ -44,7 +46,7 @@ random(32) # Output: '075bcd15'
random(32) # Output: '075bcd15'
```


Additional commands **could** be added one a *case-by-case* basis, support is included in the wrapper. But the intention of the wrapper is mainly to assist testing of a full `Python` implementation and confirm `100%` compatibility with the `JavaScript` version.

## Examples

Expand Down

0 comments on commit 95f0364

Please sign in to comment.