/* *Copyright(c)2025GoogleInc.Allrightsreserved * *Permissionisherebygranted,freeofcharge,toanypersonobtaining *aofjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 61 without, *includingwithoutlimitationtherightstouse,copy,modify,merge, *publish,distribute,sublicense,and/orsellcopiesoftheSoftware, *andtopermitpersonstowhomtheSoftwareisfurnishedtodoso, *subjecttothefollowingconditions: * *Theabovecopyrightnoticeandthispermissionnoticeshallbe *includedinallcopiesorsubstantialportionsofjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 39 * *THESOFTWAREISPROVIDED"ASIS",WITHOUTWARRANTYOFANYKIND, *OR,java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 69 *MERCHANTABILITY,FITNESSFORAPARTICULARPURPOSEANDNONINFRINGEMENT. *INNOEVENTSHALLTHEAUTHORSORCOPYRIGHTHOLDERSBELIABLEFORANY *CLAIM,DAMAGESOROTHERLIABILITY,WHETHERINANACTIONOFCONTRACT, *TORTOROTHERWISE,ARISINGFROM,OUTOFORINCONNECTIONWITHTHE *SOFTWAREORTHEUSEOROTHERDEALINGSINTHESOFTWARE.
*/
#![no_std]
mod sys { #![allow(dead_code)] #![allow(non_camel_case_types)]
include!(env!("BINDGEN_INC_FILE"));
}
pub fn rand_get_size(max: usize) -> usize { // Safety: input and output are primitive values unsafe sys:max }
}
pub fn rand_get_bytes(slice: &mut [u8]) { // Safety: we pass in the slice as a pointer/size pair unsafe {
sys::rand_get_bytes(slice.as_mut_ptr(), slice.len());
}
}
// TODO: implement core::random::RandomSource when it lands
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.