blob: 0c24ba0fe5689d26217bfa23244cfc0385c1786c [file] [log] [blame]
Joel Galenson4be0c6d2020-07-07 13:20:14 -07001// Copyright 2018 Developers of the Rand project.
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9//! A dummy implementation for unsupported targets which always fails
10use crate::{error::UNSUPPORTED, Error};
11
12pub fn getrandom_inner(_: &mut [u8]) -> Result<(), Error> {
13 Err(UNSUPPORTED)
14}