Skip to content

rerandomize_global_context is only called if seed is passed in #848

@tcharding

Description

@tcharding

rerandomize_global_context does not use the seed if rand feature is enabled however the function is only called if a seed is passed in. For rand users it would be more ergonomic to call it unconditionally so they can use None.

Also the docs are not exactly correct IIUC

/// Rerandomize the global context, using the given data as a seed.
///
/// The provided data will be mixed with the entropy from previous calls in a timing
/// analysis resistant way. It is safe to directly pass secret data to this function.
pub fn rerandomize_global_context(seed: &[u8; 32]) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions