---
title: kSecRandomDefault
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecrandomdefault
---

# kSecRandomDefault

An alias for the default random number generator.

## Declaration

```swift
let kSecRandomDefault: SecRandomRef
```

## Discussion

Discussion When passed to the SecRandomCopyBytes(_:_:_:) function as the random number generator reference, this constant indicates that the default number generator should be used. This constant is a synonym for NULL.
