---
title: init()
framework: cryptokit
role: symbol
role_heading: Initializer
path: cryptokit/mlkem768/onetimeprivatekey/init()
---

# init()

Initializes a random one-time-use private key.

## Declaration

```swift
init() throws
```
