2018-02-04 21:39:34 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Copyright (c) 2014 - 2017. *)
|
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2018-02-08 13:51:01 +04:00
|
|
|
val generate : int -> Cstruct.buffer
|
2018-02-04 21:39:34 +04:00
|
|
|
(** [generate len] is [len] random bytes. *)
|
|
|
|
|
2018-02-08 13:51:01 +04:00
|
|
|
val generate_into : ?pos:int -> ?len:int -> Cstruct.buffer -> unit
|
2018-02-04 21:39:34 +04:00
|
|
|
(** [generate_into ?pos ?len buf] writes [len] (default:
|
|
|
|
[MBytes.length buf]) bytes in [buf] starting at [pos] (default:
|
|
|
|
[0]). *)
|