# Struct std::collections::hash_map::RandomState [−] [src]

    pub struct RandomState {
        // some fields omitted
    }

`RandomState` is the default state for `HashMap` types.

A particular instance `RandomState` will create the same instances of `Hasher`, but the hashers created by two different `RandomState` instances are unlikely to produce the same result for the same values.

## Methods

### `impl RandomState`

#### `fn new() -> RandomState`

Constructs a new `RandomState` that is initialized with random keys.

## Trait Implementations

### `impl BuildHasher for RandomState`

#### `type Hasher = SipHasher`

#### `fn build_hasher(&self) -> SipHasher`

### `impl Default for RandomState`

#### `fn default() -> RandomState`

### Derived Implementations

### `impl Clone for RandomState`

#### `fn clone(&self) -> RandomState`

#### `fn clone_from(&mut self, source: &Self)`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize`)