Machine Learning in Elixir: Nx.random_uniform is deprecated (page 44)

Hi,

When running

tensor = Nx.random_uniform({1_000_000})

There’s a warning message warning: Nx.random_uniform/1 is deprecated. Use Nx.Random.uniform/2 instead

I think it can be replaced with:

key = Nx.Random.key(1701)
{tensor, _new_key} = Nx.Random.uniform(key, shape: {1_000_000})

Best,
Emilio