> For the complete documentation index, see [llms.txt](https://peanutprotocol.gitbook.io/peanut-protocol-docs-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://peanutprotocol.gitbook.io/peanut-protocol-docs-1/integrate/using-the-sdk/utils/get-random-string.md).

# Get Random String

Is random actually random? Well, using this function it actually is!

When generating a password for the Link, its important that the password cannot be predicted in any way. Use this function to cryptographically generate a secure password. A string of min 16 chars is recommended.&#x20;

```javascript
const password = await peanut.getRandomString(16)
```
